WINTEXT(4) 6130 Window Documentation WINTEXT(4)
NAME
wintext - 6130 integrated window manager text window
DESCRIPTION
NOTE: This window interface will change in future releases.
This document supplements the overview data found in win(4).
Escape Sequences
A number of escape sequences are supported in a text window
to control the manner in which characters are displayed.
This includes the ability to change fonts and highlight
text. Note that while it is possible to display all
possible font types in a window simultaneously, if that
window is redrawned, or scrolled offscreen and then back,
only the current font values will be used.
The following table defines the escape sequences recognized.
The notation \E represents an escape, and \ddd represents
the character whose octal value is ddd.
\016 (SO) select G1 font
\017 (SI) select G0 font (default)
\E(. set G0 font
\E). set G1 font
B American
1 italic set
2 boldface set
3 greek set
4 small set
5 tiny set
9 user-defined set
\E= application keypad
\E> numeric keypad
\E+ page forward (toward "newer" lines)
\E, line forward
\E- page backward (toward "older" lines)
\E. line backward.
\E@ insert mode
\EA cursor up
\EB cursor down
\EC cursor right
\ED cursor left
\EE erase screen
\EF set G0 = graphics font
\EG set G0 = normal font
\EH home
\EI reverse index
2nd Edition Dr. Dum s Collection
WINTEXT(4) 6130 Window Documentation WINTEXT(4)
\EJ erase to end of display
\EK erase to end of line
\EL insert line
\EM delete line
\EN delete character
\EO replace mode
\EX index
\EY%+ %+ cursor motion
\EZ identify
\E` back tab
\Eb erase to beginning of display
\Ec<char><data1>..<data16>define character
\Ed<key><flags><length><data>...define key
\Ee repaint window
\Ef insert character
\Ej save cursor position
\Ek restore cursor position
\El erase line
\En report cursor position
\Eo erase to beginning of line
\Ep reverse video
\Eq normal video
\Er underscore on
\Es underscore off
\Et highlight 1
\Eu highlight 2
\Ev highlight off
\Ex. set mode
\Ey. reset mode
0 = kbd lock / unlock
1 = kbd raw / cooked
2 = kbd local / global
3 = keypadapplic / numeric
4 = cursorno flash / flash
5 = cursoroff / on
6 = mouse applic / default
7 = mouse host / display mgr
8 = mouse track / keyclicks
9 = margindiscard / wrap
\Ez clear screen and reset all modes
\E{ enable keyboard
\E} disable keyboard
\E/Z\r identify response
\EP F13
\EQ F14
\ER F15
\ES F16
\Em%+ %+ cursor position report
2nd Edition Dr. Dum s Collection
WINTEXT(4) 6130 Window Documentation WINTEXT(4)
Note that all the cursor and editing functions are limited
to the bottom 28 lines of the scroll buffer. For example, a
"clear screen" sequence clears the bottom 28 lines (where
"vi" works) but doesn't erase the rest of your scroll
buffer.
Function key definitions
The <key> field of the function key definition is computed
by taking the code as defined in winkey(4) and adding 32
decimal to it. (Thus F1 is " "). If the <flag> is 32, the
key data is sent to the computer (normal operation). If the
flag is 33, the key data is sent directly to the window
(local operation). The <length> is the number of data bytes
to follow, plus 32. A zero-length string (" ") disables the
key. <Data> is the string to be sent when the key is
pressed.
You can also define local keys from the keyboard. Press
"meta" and the key to be defined to start a normal
definition. Press "meta" and the key again to start a local
definition. Type the data to be sent, and then press the
function key again (without the meta!). The definition is
echoed in the status line as you type it.
When you create a window, it is given a local copy of the
standard key definitions. These definitions may be changed
on a per-window basis by using the 'ESC d' sequence above.
The standard definitions may be changed by sending:
ESC x 2 /* to switch to standard definition table */
ESC d ..... /* to define keys */
Note that if you switch back to the local definitions (ESC y
2) you won't see the change: it affects only new windows or
windows which have selected the 'global' definitions by
using ESC x 2.
You can also change the definitions by using ESC x 3 to
select These functions copy the keypad and F13-F16
definitions from the standard table into the per-window
table. ESC y 3 copies the definitions "as is". ESC x 3
swaps the shifted and unshifted key definitions.
FILES
CAVEATS
Displays are not supported. If you have a problem, report
the problem through the same chain that you got your
software from. Please send updates for this document to
athena!steved.
SEE ALSO
ioctl(2), win(4), wintext(4), wingraf(4), winpop(4),
2nd Edition Dr. Dum s Collection
WINTEXT(4) 6130 Window Documentation WINTEXT(4)
wincolor(4).
2nd Edition Dr. Dum s Collection
%%index%%
na:72,88;
de:160,6541;
fi:6701,36;
ca:6737,255;
se:6992,478;
%%index%%000000000094