30.01.2013 Views

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Using Namespaces<br />

Using Namespaces<br />

CLI interactive commands exist in the primary Tcl namespace (::). Some of<br />

the <strong>TotalView</strong> state variables also reside in this namespace. Seldom-used<br />

functions and functions that are not primarily used interactively reside in<br />

other namespaces. These namespaces also contain most <strong>TotalView</strong> state<br />

variables. (The variables that appear in other namespaces are usually<br />

related to <strong>TotalView</strong> preferences.) <strong>TotalView</strong> uses the following<br />

namespaces:<br />

TV:: Contains commands and variables that you use when<br />

creating functions. They can be used interactively, but<br />

this is not their primary role.<br />

TV::GUI:: Contains state variables that define and describe properties<br />

of the user interface, such as window placement<br />

and color.<br />

If you discover other namespaces beginning with TV, you have found a<br />

namespace that contains private functions and variables. These objects<br />

can (and will) disappear, so don’t use them. Also, don’t create namespaces<br />

that begin with TV, since you can cause problems by interfering with built-in<br />

functions and variables.<br />

The CLI dset command lets you set the value of these variables. You can<br />

have the CLI display a list of these variables by specifying the namespace;<br />

for example:<br />

dset TV::<br />

You can use wildcards with this command. For example, dset TV::au* displays<br />

all variables that begin with “au”.<br />

About the CLI Prompt<br />

The appearance of the CLI prompt lets you know that the CLI is ready to<br />

accept a command. This prompt lists the current focus, and then displays a<br />

greater-than symbol (>) and a blank space. (The current focus is the processes<br />

and threads to which the next command applies.) For example:<br />

d1. The current focus is the default set for each command,<br />

focusing on the first user thread in process 1.<br />

g2.3> The current focus is process 2, thread 3; commands act<br />

on the entire group.<br />

<strong>TotalView</strong> <strong>Users</strong> <strong>Guide</strong>: version 8.7 207

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!