diff options
author | Steve Bennett <steveb@workware.net.au> | 2020-07-17 11:15:10 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2023-07-04 10:08:32 +1000 |
commit | 92aec20d365d699d001b767659b2b3aa4d90bd18 (patch) | |
tree | f01c5a53d4b3ac78a7649c48cbae952980703b78 /examples | |
parent | a6f101248ee409e1b952fa9560f409127701e9c7 (diff) | |
download | jimtcl-92aec20d365d699d001b767659b2b3aa4d90bd18.zip jimtcl-92aec20d365d699d001b767659b2b3aa4d90bd18.tar.gz jimtcl-92aec20d365d699d001b767659b2b3aa4d90bd18.tar.bz2 |
interactive: enable hint support
And add a default implementation of tcl::stdhint to add
hinting for some built-in commands.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/jtclsh.tcl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/jtclsh.tcl b/examples/jtclsh.tcl index 772b327..83d0b0d 100644 --- a/examples/jtclsh.tcl +++ b/examples/jtclsh.tcl @@ -8,8 +8,8 @@ package require history set histfile [env HOME]/.jtclsh history load $histfile -# Use the standard Tcl autocompletion -history completion tcl::autocomplete +# Use the standard Tcl autocompletion and hint support +history completion tcl::autocomplete tcl::autohint set prefix "" while {1} { # Read a complete line (script) |