View Full Version : How do I configure the CLI xterm?

07-17-2006, 09:56 AM
The xterm window used by the CLI is rather bland. By creating a CLI macro, you can make changes to this environment. Here is a macro that adds scrollbars:

proc xterm_scrollbar {{enable 1}} {
if {$enable} {
# Turn on scrollbar
puts -nonewline "\x1b\[?30h"
} else {
# Turn off scrollbar
puts -nonewline "\x1b\[?30l"

[/url]This macro will need to be invoked before TotalView creates a CLI window. This is exactly what the TV::open_cli_window_callback variable is used for.

catch {dset TV::open_cli_window_callback {xterm_scrollbar 1}}

[/url]If you are already using this callback, you'll need use dlappend instead of dset.
[br]You'll find more information at http://www.thrysoee.dk/xtermcontrol/.