Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Xterm in TCL/TK

Status
Not open for further replies.

LostInAix

Technical User
May 17, 2000
2
US
Is it possible to run a Xterm <b>within</b> a tcl/tk widget?<br><br>thanks
 
You can invoke one using <FONT FACE=monospace>exec xterm &</font> if you mean what I think you mean (running something like an xterm window inside your widget) it could get messy.<br>This should do the trick for a mini xterm (ie one line no output)<br><FONT FACE=monospace>textentry .t -variable cmd<br>button .b -text &quot;Run&quot; -command { exec xterm -e $cmd & }<br>pack .t .b </font><br><br>There is some way of capturing output, I'm not near any of my tcl stuff right now so I'll post it when I find it.<br> <p>Chris Packham<br><a href=mailto:kriz@i4free.co.nz>kriz@i4free.co.nz</a><br><a href= > </a><br>A thousand mokeys at a thousand machines, it happened, it got called the internet.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top