LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 06-24-2008, 06:50 PM   #1
johnny_pham@mentor.c
LQ Newbie
 
Registered: Jun 2008
Posts: 1

Rep: Reputation: 0
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
 
Old 06-25-2008, 01:42 PM   #2
ADxD_7
Member
 
Registered: May 2007
Location: CO
Distribution: Solaris , Redhat , Debian
Posts: 152

Rep: Reputation: 23
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tcl Tk script question KaYoS Slackware 1 11-20-2006 03:30 PM
A classical trivia question: how many copies of Penguin there are out there? natasha General 8 08-11-2006 07:06 PM
how do i replace the clear "clear screen" with the cls command thefedexguy Suse/Novell 2 12-02-2005 06:02 PM
Xserver multiple display classical question anup_clemson Mandriva 1 03-08-2005 04:06 PM
How to start a Tcl/Tk script by simply invoking the script file itself ? cyu021 Programming 2 10-10-2004 12:00 PM


All times are GMT -5. The time now is 09:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration