Tcl Source Code

View Ticket
Login
Ticket UUID: ed4c6100045e9efaa2c530617476b2771cb1eba3
Title: REPL
Type: Bug Created on: 2019-06-08 04:05:55
Submitter: svnpenn Assigned to: nobody
Subsystem: 20. [interp] Severity: Important
Priority: 5 Medium Last modified: 2019-07-03 15:02:42
Status: Open Closed by: nobody
Resolution: None Closed on:
Version:
Description:
The Tcl REPL has an issue. With Python, Ruby, JavaScript and others, pressing
"up" will give you the previous command.

With Tcl, it just utterly breaks the session, requiring Ctrl+C or similar.
User Comments:
svnpenn added on 2019-06-08 04:26:57:
Looks like it depends on the build - this one works as expected

https://irontcl.com

chrstphrchvz added on 2019-07-03 15:02:42:

You are probably looking for interactive "readline" support. There are multiple options for this; one "official" option is tclreadline.

I think this functionality might be beneficial to have by default ("opt-out" rather than "opt-in") for usability, but I'm not sure the Tcl community would agree, for example due to the number of approaches, some of which require external software dependencies.