From 92aec20d365d699d001b767659b2b3aa4d90bd18 Mon Sep 17 00:00:00 2001 From: Steve Bennett Date: Fri, 17 Jul 2020 11:15:10 +1000 Subject: 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 --- examples/jtclsh.tcl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/jtclsh.tcl') 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) -- cgit v1.1