Re: Is there a way to make 'wish' read standard input?



Just to make my question more clear.

The following is a very simple script:
### tt.tcl begin
set a 123
puts $a
### end

On Linux console, I type in
wish tt.tcl
I'll see a window pop up, and the console shows

northstar:/tmp% wish tt.tcl
123
_

However,
I could not get the command prompt % in the console.
Is there a way to get tcl command prompt % in the above scenario ?
Thanks!

-Todd


Aric Bills wrote:
If I understand right, you'd like to run a script and then enter
interactive mode where you can type commands from the console.

If that's the case, and if you're developing for Windows or OS X, your
script can call [console show], which will pop up the interactive
console. On Unix (as well as the other platforms), your script could
load Jeff Hobbs' TkCon and call [tkcon show].

.



Relevant Pages

  • Re: Is there a way to make wish read standard input?
    ... I'll see a window pop up, and the console shows ... I could not get the command prompt % in the console. ... where you start your script in a shell ... On a project at a previous employer we had a standard argument parser ...
    (comp.lang.tcl)
  • launching wish from tclsh
    ... console interface (tclsh) in place of a gui interface for input of test ... So, I proceeded creating a tcl script that, running from Tclsh, gets ... If I open a Tclsh console and I manually try to launch wish console ...
    (comp.lang.tcl)
  • Re: javaldx failed.
    ... mozilla start from default fails, ... error message. ... console in the icewm window but I resolved this for the console window ... get script ...
    (Debian-User)
  • Re: Firefox ???
    ... Console, Error Console, Page Info, Clear Private Data, Flashgot and ... Can't see Network or Offline Storage Pane. ... it might just be that the coding for the router page is ... "A script on this page may be busy, ...
    (uk.people.silversurfers)
  • [Full-Disclosure] Norton AntiVirus 2004 Script Blocking Failure (Rant and PoC enclosed)
    ... thanks to the "Script Blocking" ... Once out of reboot hell, I fired up the NAV2004 console, an annoyingly ... virus or spyware infected PC with NAV on it (user error not NAV's ...
    (Full-Disclosure)