Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

TCL clear screen

Hi,

I would like to clear screen from TCL sheel. I tried commands that work on Unix Tcl implementation (puts "\033\[2J" but had not succeded. Anybody knows if that is even possible?

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: TCL clear screen

Try:

proc clear_term { } {

exec "terminal international"

puts "\x1B\x5B\x32\x4A\x1B\x5B\x30\x3B\x30\x48"

}

2 REPLIES
Cisco Employee

Re: TCL clear screen

Try:

proc clear_term { } {

exec "terminal international"

puts "\x1B\x5B\x32\x4A\x1B\x5B\x30\x3B\x30\x48"

}

Community Member

Re: TCL clear screen

EXCELLENT!! Thank you very much.

825
Views
0
Helpful
2
Replies
CreatePlease to create content