Artifacts Associated With Ticket 1031860
Ticket change [f984a6a3e4] (rid 91721) by nobody on 2004-09-21 12:49:21:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized 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 initialized to: "obsolete: 8.4.7"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to: "Cannot set prompt"
- type initialized to: "RFE"
Ticket change [782cb543a2] (rid 89913) by dkf on 2004-09-21 20:01:23:
- foundin changed to: "None"
- subsystem changed to: "None"
Ticket change [dde24002ee] (rid 114755) by dgp on 2004-09-21 23:46:00:
- status changed to: "Closed"
Ticket change [776b3a96cf] (rid 89773) by dgp on 2004-09-21 23:46:01:
- assignee changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 Submitter needs to re-read the tclsh.1 documentation http://tmml.sourceforge.net/doc/tcl/tclsh.html It is expected that the values of ::tcl_prompt1 and ::tcl_prompt2, if any, are scripts that do their own writing to stdout. For example, set ::tcl_prompt1 {puts -nonewline stdout "Hello "} I agree with the submitter that his alternative interface (return the prompt value for the core to write) is superior, but that's not the one that was chosen all those years ago. Proposal for alternative means to customize the prompts should be filed as a feature request. - login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- subsystem changed to: "50. Embedding Support"
- username: "dgp"
Ticket change [dcd2a23b22] (rid 114551) by dgp on 2004-09-21 23:46:02:
- closedate changed to: "2004-09-21T16:46:02"
- closer changed to: "dgp"