Skip to content
Tcl Source Code History Of Ticket 1031860fffffffff
Login

History Of Ticket 1031860fffffffff

Artifacts Associated With Ticket 1031860fffffffff

  1. Ticket change [f984a6a3e4] (rid 91721) by nobody on 2004-09-21 12:49:21:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. 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]
      
      
      
    4. foundin initialized to: "obsolete: 8.4.7"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to: "Cannot set prompt"
    11. type initialized to: "RFE"
  2. Ticket change [782cb543a2] (rid 89913) by dkf on 2004-09-21 20:01:23:

    1. foundin changed to: "None"
    2. subsystem changed to: "None"
  3. Ticket change [dde24002ee] (rid 114755) by dgp on 2004-09-21 23:46:00:

    1. status changed to: "Closed"
  4. Ticket change [776b3a96cf] (rid 89773) by dgp on 2004-09-21 23:46:01:

    1. assignee changed to: "dgp"
    2. 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.
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. resolution changed to: "Invalid"
    6. subsystem changed to: "50. Embedding Support"
    7. username: "dgp"
  5. Ticket change [dcd2a23b22] (rid 114551) by dgp on 2004-09-21 23:46:02:

    1. closedate changed to: "2004-09-21T16:46:02"
    2. closer changed to: "dgp"