Support

Home | Support | Tips

How do I configure the CLI xterm?

 

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"
	}
}

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}}

If you are already using this callback, you'll need use dlappend instead of dset.

You'll find more information at http://www.thrysoee.dk/xtermcontrol/.