How to use the ↑ key in tcl to display multiple rows of history

57 views Asked by At

I first defined a multi-line function in tcl

tclsh8.5 [~/Desktop]proc myproc {arg1 arg2} {
>    # do something here, e.g.
>    puts [list arg1 $arg1 arg2 $arg2]
>}

When I want to load the history with ↑ key, I found that it can only load one line at a time, and it can't display multiple lines of history at once.

Is there any way to display the entire multi-line history when I click the ↑ key?

0

There are 0 answers