.
D 2004-09-21T12:49:21
J assignee nobody
J cmimetype text/plain
J comment Setting\sthe\stcl_prompt1\sand\stcl_prompt2\svalues\ssuch\s\nthat\sthe\sexpression\sexecutes\swithout\serrors\sresults\sin\sno\s\nprompt\sshowing\sat\sall.\n\nIn\stclsh\s(or\sany\sapplication\slinked\sto\sthe\sTcl\slibrary)\stry\s\ntyping;\n\nset\stcl_prompt1\s{\sreturn\s-code\serror\sHello\s}\n\nThis\swill\sprint\s"Hello"\son\sone\sline\sfollowed\sby\sthe\sdefault\s\nprompt\s(read\sthe\scode\sto\ssee\swhy).\n\ntyping;\n\nset\stcl_prompt1\s{\sformat\s"Hello"\s}\n\nresults\sin\sno\sprompt\sbeing\sprinted.\n\nThe\scode\sis\sin\sthe\sfunction\sPrompt()\sin\stclMain.c.\n\nIf\syou\sadd\sthe\scode\sbelow\sat\sline\s720\sof\stclMain.c\sthen\s\neverything\sworks\sas\sI\swould\sexpect\sit\sto.\n\n\n}\selse\s{\noutChannel\s=\sTcl_GetStdChannel\n(TCL_STDOUT);\nif\s(outChannel\s!=\s(Tcl_Channel)\sNULL)\s\n{\nTcl_WriteObj(outChannel,\s\nTcl_GetObjResult(interp));\n}\n}\n\nIf\syou\shave\sany\squestions,\semail\sme\sat\s\[email protected]\n\n
J foundin obsolete:\s8.4.7
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title Cannot\sset\sprompt
J type RFE
K 1031860fffffffffffffffffffffffffffffffff
U nobody
Z 94ae05bdbaeb24310dc63833d522b1f6