12.07.2015 Views

spec - Local Sector 7 web page

spec - Local Sector 7 web page

spec - Local Sector 7 web page

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

tty_cntl(cmd) — Sends terminal-<strong>spec</strong>ific escape sequences to the display. Thesequences are only written to the "tty" device and only if it is turned on foroutput. The sequences are obtained from the system terminal-capability database using the value of the environmental variable TERM . The following valuesfor cmd are recognized:"ho" — Move the cursor to the home position (upper left corner)."cl" — Clear the screen."ce" — Clear to the end of the line."cd" — Clear from current position to the end of the screen."so" — Start text stand-out mode."se" — End text stand-out mode."md" — Start bold (intensified) mode."me" — End bold mode."us" — Start underline mode."ue" — End underline mode."mb" — Start blink mode. (Note, xterms don’tblink.)"mh" — Start half-bright mode."mr" — Start reverse video mode."up" — Move cursor up one line."do" — Move cursor down one line."le" — Move cursor left one space."nd" — Move cursor right one space (nondestructive)."resized?" — A<strong>spec</strong>ial option that updates the ROWS and COLS variables in theevent the window size has changed and returns a nonzero value if thewindow size has changed since the last call to tty_cntl("resized?") .Returns true if cmd is recognized, otherwise returns false.tty_move(x, y [, string ]) — Moves the cursor to column x and row y of the display,where column 0, row 0 is the upper left corner of the screen. If the thirdargument string is present, it is written as a label at the given position. Thesequences and string are only written to the "tty" device and only if it isturned on for output. Special tty control sequences of the form \[xx] ,wherexx is one of the codes listed for the tty_cntl() function above, can be usedwith string . Negative x or y position the cursor relative to the left or bottomedges of the screen, re<strong>spec</strong>tively. Relative moves are possible by adding ±1000to x or y position arguments. Both coordinates must <strong>spec</strong>ify either relative orabsolute moves. If one coordinate <strong>spec</strong>ifies a relative move, the absolute movein the other coordinate will be ignored. Please note, not all terminal types supportrelative moves. Returns true.INTERIM WORK-IN-PROGRESS (8/16/01) NOT FOR GENERAL DISTRIBUTION REFERENCE MANUAL 87

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

Saved successfully!

Ooh no, something went wrong!