cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3760
Views
0
Helpful
2
Replies

TCL clear screen

bfele
Level 1
Level 1

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

Joe Clarke
Cisco Employee
Cisco Employee

Try:

proc clear_term { } {

exec "terminal international"

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

}

View solution in original post

2 Replies 2

Joe Clarke
Cisco Employee
Cisco Employee

Try:

proc clear_term { } {

exec "terminal international"

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

}

EXCELLENT!! Thank you very much.