Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Key buffer in Wish

Status
Not open for further replies.

sedawk

Programmer
Feb 5, 2002
247
US
Hi,

My wish on a Linux machine doesn't have key buffer (or key history). When I use up-arrow and down-arrow keys, it gives garbage, like this:

% ^[[A
% ^[[B

Right- and left-arrow keys provide junk too. How do I configure Wish to use up-arrow and down-arrow? It is very painful to use Wish without it.

Thanks.
 
Hi

Those functionalities are provided by the readline library. To make [tt]tclsh[/tt] or [tt]wish[/tt] to use it, their source code has to be modified accordingly then recompiled. (*) Personally I prefer to stick with the current pain.

(*) As far as I know. Never researched on this particular case.


Feherke.
 
Thanks, that is a lead. I am new to Tcl.

By the way, how do I check the version number? I found my tclsh doesn't support "dict" keyword.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top