Overview
| Artifact ID: | f984a6a3e4ed058fbe3087e0f22d2a7050cbb0b5 |
|---|---|
| Ticket: | 1031860fffffffffffffffffffffffffffffffff
Cannot set prompt |
| User & Date: | nobody on 2004-09-21 12:49:21 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
Setting the tcl_prompt1 and tcl_prompt2 values such that the expression executes without errors results in no prompt showing at all. In tclsh (or any application linked to the Tcl library) try typing; set tcl_prompt1 { return -code error Hello } This will print "Hello" on one line followed by the default prompt (read the code to see why). typing; set tcl_prompt1 { format "Hello" } results in no prompt being printed. The code is in the function Prompt() in tclMain.c. If you add the code below at line 720 of tclMain.c then everything works as I would expect it to. } else { outChannel = Tcl_GetStdChannel (TCL_STDOUT); if (outChannel != (Tcl_Channel) NULL) { Tcl_WriteObj(outChannel, Tcl_GetObjResult(interp)); } } If you have any questions, email me at [email protected] - foundin changed to: "obsolete: 8.4.7"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "69. Other"
- title changed to: "Cannot set prompt"
- type changed to: "RFE"