Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f984a6a3e4ed058fbe3087e0f22d2a7050cbb0b5
Ticket: 1031860fffffffffffffffffffffffffffffffff
Cannot set prompt
User & Date: nobody on 2004-09-21 12:49:21
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. 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]
    
    
    
  4. foundin changed to: "obsolete: 8.4.7"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to: "Cannot set prompt"
  11. type changed to: "RFE"