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.

Figure 124: File > Save Pane<br />

Dialog Box<br />

2 Edit the text and press Return.<br />

Saving the Contents of Windows<br />

Like other Motif-based applications, you can use your mouse to copy and<br />

paste text in <strong>TotalView</strong> and to other X Windows applications by using your<br />

mouse buttons.<br />

You can also manipulate text by using Edit > Copy, Edit > Cut, Edit > Paste,<br />

and Edit > Delete. If you haven’t yet pressed the Return key to confirm your<br />

change, you can use the Edit > Undo command to restore information.<br />

Usually <strong>TotalView</strong> dives when you click your middle-mouse button on<br />

something. However, if <strong>TotalView</strong> is displaying an editing cursor, clicking<br />

your middle-mouse button pastes text.<br />

Saving the Contents of Windows<br />

You can write an AS<strong>CI</strong>I equivalent to most pages and panes by using the<br />

File > Save Pane command. This command also lets you pipe data to UNIX<br />

shell commands. (See Figure 124.)<br />

If the window or pane contains a lot of data, you can use the Restrict<br />

Output option to limit how much information <strong>TotalView</strong> writes or sends. For<br />

example, you might not want to write a 100 x 100 x 10,000 array to disk. If<br />

this option is checked (the default), <strong>TotalView</strong> only sends the indicated<br />

number of lines. You can, of course, change the amount indicated here.<br />

When piping information, <strong>TotalView</strong> sends what you’ve typed to /bin/sh.<br />

This means that you can enter a series of shell commands. For example,<br />

the following is a command that ignores the top five lines of output, compares<br />

the current AS<strong>CI</strong>I text to an existing file, and writes the differences to<br />

another file:<br />

| tail +5 | diff – file > file.diff<br />

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

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

Saved successfully!

Ooh no, something went wrong!