Changing prompt doesn't work
Closed / Invalid1230422fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 21 years ago
Descriptionplain2005-06-30 15:33:31
If you write a program that does something like: Tcl_SetVar(ptInterp, "tcl_prompt1", "format \"hello> \"", TCL_GLOBAL_ONLY); Or you do it while in a Tcl shell, the prompt disappears altogether. I found this bug in Tcl 8.4.7, so it may have been fixed in the interim. I did search the bug database. I have fixed this bug in my local copy of the code, and if you want the fix, my email is [email protected].
dgpplain2005-07-01 00:47:22
Logged In: YES
user_id=80530
The command [format "hello> "]
does not write anything to the stdout
channel, so there will be no prompt
seen on the stdout channel. Contrast
with
set tcl_prompt1 {puts -nonewline "hello> "}
This is in fact a dumb interface for
producing custom prompts, I'll confess,
but it's the one handed down by history,
and it hasn't changed.
See docs at
http://tmml.sourceforge.net/doc/tcl/tclsh.html
dgp Ticket [1230422fff]: 1 change
[History diff]2005-07-01 00:48:01
Log in (anonymous is fine) to add a comment.