LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Classical question: How do I clear the screen from my TCL script? (https://www.linuxquestions.org/questions/linux-newbie-8/classical-question-how-do-i-clear-the-screen-from-my-tcl-script-651384/)

johnny_pham@mentor.c 06-24-2008 05:50 PM

Classical question: How do I clear the screen from my TCL script?
 
I am a Unix/Linux user. To clear the screen I usually use the "clear" command in the prompt. Now I want to do it inside a tcl script, but have no lucks. Any helps will be appreciated.

The results of my google search have suggested the following TCL commands

puts [exec clear]
puts [exec /usr/bin/clear]
puts \x1B\[2J
puts \x1b\[H\x1b\[2J

None of them is working for me, in other words the above commands have no effect to clear the screen as expected.


-Johnny

ADxD_7 06-25-2008 12:42 PM

I really dont know tcl that well but I think it would be

flush stdout

Like I said though I could be totally wrong :)

But give it a try


All times are GMT -5. The time now is 02:32 AM.