Check-in [dcfb8c8dac]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:fix formatting in TSB's readme
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: dcfb8c8dacd26ee585376ff5884708648f74db04
User & Date: chw 2019-07-13 06:12:53
Context
2019-07-13
13:15
add build support for macosx to snap7 check-in: 165f5d2471 user: chw tags: trunk
06:12
fix formatting in TSB's readme check-in: dcfb8c8dac user: chw tags: trunk
06:10
add readme to TSB check-in: a316d24b47 user: chw tags: trunk
Changes

Changes to undroid/tsb/README.md.

18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
...
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
...
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355

A ready made ZIP kit for immediate experimation is available in [tsbkit].
It supports the three major desktop platforms Windows (32 and 64 bit),
MacOS (Intel, 64 bit), Linux (Intel, 32 and 64 bit, distro agnostic but
a decent version with gnome 3 runtime is required). If started without
further arguments, it presents an overview page with links to examples.

<center><img src="data:image/png;base64,
iVBORw0KGgoAAAANSUhEUgAAAVoAAAFVCAYAAACuByejAAAABmJLR0QA/wD/AP+gvaeTAAAgAElE
QVR42u3dd1iT5/4G8PvNIISNCgguRMWBuHGgtloHTpBqp/ZoW3etSm3Vqj/rqdr2WPc4VevqPOd0
WEe1LdW6B8466sZVnFV2FiR5fn+kvBAIEBEU9f5cFxch78jzPknuPHne5Iv0xx8nhdVqhcVigRAC
FosFd+8m4+LFRNy5cwc6nQ5msxlCiAI/OXIv5r0u9zIR0aNAkqS8f/19nf3ynB/b3wooFAq4uKjh
5uYGb29vaDQaKBS26yVJgkKhgMpqtcJstkAIK7KysnD06O/IyjLh5Zf7w8fHx26nRERkL2fgaTQa
kZCQAEmSUL16dahUqtzAPXr0qLBaLcjOzsaOHTvRrVs3hIWFwWw2w2q1wmq1sieJiIqQE6gqlQpJ
SUnYt28fateuBaVSaVtmtVpgNptx5MhRdOvWDfXr14fRaJSDloiIimabGTDDaDQiKCgIbdq0QVJS
................................................................................
Bi0RETFoiYgYtEREDFoiImLQEhExaImIHk9WHYOWiKjMiGxYM5cxaImIyi5njwOWO7agvXnrFnuE
iKjUg/YiAM7REhGVHWsag5aI6EFg0BIRMWiJiBi0RETkMGG9GbRERGVJUtcCAKjYFUREZRW04YAy
nSNaIqIyTFooPIbagrZyQAA7hIioLCjcOaIlIirzrGUXEBE9gKCVJIk9QURUynKyVcGQJSIq27Dl
1AERURnj1AERURmOZoG/pw4YtEREZRO0kiRxjpaIqKzDlkFLRFSGEg4etAWtQsFzYkREpU2hUECC
xDlaIqKyIs/RKhQKBi0RUVkFrYIjWiKisg1a/D2i5RwtEVHpUygUkGwZy6AlIiqroFVIEhRKpZJT
B0REZSDnU10KhUIBpVLJHiEiKmVKpRKSQgHp9OnT4tChQ7BYLAV+rFZrgR8AsFqtEEJACAEABX4T
PcmEEPj8q6/RtHFjNApvWKr7/m37dqSlpSM2Jrpc7OdxH40eO34C+w8cwOBXB0GtViPv9w5ypl3z
/iiVygI/LVq0wP8DRUT4lnrSlZIAAAAASUVORK5CYII="></center>

## How does it work?

In Tcl a webview is created

    set W [twv:new -width 800 -height 600 -url ... -callback ...]

................................................................................
text and HTML. When text is input into the textarea and <Shift-Return>
is entered, that text is evaluated as Tcl script, or HTML/Markdown.
The result is put into one of the HTML divs for output. In case the
evaluation did not produce an error, a new empty HTML textarea plus
two new HTML divs for output are added to the document, which then
are used for the next evaluation, and so on.

# And what is it good for?

Good question. At least, one can quickly, interactively check out
Tcl code and at the same time write some good looking documentation,
which can be immediately printed out (platform dependent) or written
as HTML to a file for later display in a browser.

# How to hang yourself without a rope?

The current version does not use a Tcl slave interpreter for command
evaluation (which would allow for limitation of runtime and a "safe"
set of available Tcl commands). Thus, the easiest way to hang yourself
is to enter

    while {1} {}







|







 







|







 







|






|







18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
...
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
...
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355

A ready made ZIP kit for immediate experimation is available in [tsbkit].
It supports the three major desktop platforms Windows (32 and 64 bit),
MacOS (Intel, 64 bit), Linux (Intel, 32 and 64 bit, distro agnostic but
a decent version with gnome 3 runtime is required). If started without
further arguments, it presents an overview page with links to examples.

<img src="data:image/png;base64,
iVBORw0KGgoAAAANSUhEUgAAAVoAAAFVCAYAAACuByejAAAABmJLR0QA/wD/AP+gvaeTAAAgAElE
QVR42u3dd1iT5/4G8PvNIISNCgguRMWBuHGgtloHTpBqp/ZoW3etSm3Vqj/rqdr2WPc4VevqPOd0
WEe1LdW6B8466sZVnFV2FiR5fn+kvBAIEBEU9f5cFxch78jzPknuPHne5Iv0xx8nhdVqhcVigRAC
FosFd+8m4+LFRNy5cwc6nQ5msxlCiAI/OXIv5r0u9zIR0aNAkqS8f/19nf3ynB/b3wooFAq4uKjh
5uYGb29vaDQaKBS26yVJgkKhgMpqtcJstkAIK7KysnD06O/IyjLh5Zf7w8fHx26nRERkL2fgaTQa
kZCQAEmSUL16dahUqtzAPXr0qLBaLcjOzsaOHTvRrVs3hIWFwWw2w2q1wmq1sieJiIqQE6gqlQpJ
SUnYt28fateuBaVSaVtmtVpgNptx5MhRdOvWDfXr14fRaJSDloiIimabGTDDaDQiKCgIbdq0QVJS
................................................................................
Bi0RETFoiYgYtEREDFoiImLQEhExaImIHk9WHYOWiKjMiGxYM5cxaImIyi5njwOWO7agvXnrFnuE
iKjUg/YiAM7REhGVHWsag5aI6EFg0BIRMWiJiBi0RETkMGG9GbRERGVJUtcCAKjYFUREZRW04YAy
nSNaIqIyTFooPIbagrZyQAA7hIioLCjcOaIlIirzrGUXEBE9gKCVJIk9QURUynKyVcGQJSIq27Dl
1AERURnj1AERURmOZoG/pw4YtEREZRO0kiRxjpaIqKzDlkFLRFSGEg4etAWtQsFzYkREpU2hUECC
xDlaIqKyIs/RKhQKBi0RUVkFrYIjWiKisg1a/D2i5RwtEVHpUygUkGwZy6AlIiqroFVIEhRKpZJT
B0REZSDnU10KhUIBpVLJHiEiKmVKpRKSQgHp9OnT4tChQ7BYLAV+rFZrgR8AsFqtEEJACAEABX4T
PcmEEPj8q6/RtHFjNApvWKr7/m37dqSlpSM2Jrpc7OdxH40eO34C+w8cwOBXB0GtViPv9w5ypl3z
/iiVygI/LVq0wP8DRUT4lnrSlZIAAAAASUVORK5CYII=">

## How does it work?

In Tcl a webview is created

    set W [twv:new -width 800 -height 600 -url ... -callback ...]

................................................................................
text and HTML. When text is input into the textarea and <Shift-Return>
is entered, that text is evaluated as Tcl script, or HTML/Markdown.
The result is put into one of the HTML divs for output. In case the
evaluation did not produce an error, a new empty HTML textarea plus
two new HTML divs for output are added to the document, which then
are used for the next evaluation, and so on.

## And what is it good for?

Good question. At least, one can quickly, interactively check out
Tcl code and at the same time write some good looking documentation,
which can be immediately printed out (platform dependent) or written
as HTML to a file for later display in a browser.

## How to hang yourself without a rope?

The current version does not use a Tcl slave interpreter for command
evaluation (which would allow for limitation of runtime and a "safe"
set of available Tcl commands). Thus, the easiest way to hang yourself
is to enter

    while {1} {}