% ]>> TO-PAD FIX> [REST ]>> FIX> ]>>>) (T ]>>>)> "TTY-CHANNELs contain buffers and channel/specific modes. They point to TTYs, which contain the rest of the dynamic tty information (cursor pos, special characters, speed, etc. A TTY points to a TTY-DESC, which contains static tty information (type, height, width, padding, escape sequences)." ; "Device name (/dev/tty)" TC-SNM ; "directory" TC-NM1 TC-NM2 TC-DSN TC-STATUS FIX TC-OJFN FIX TC-IBUF ; "input buffer" TC-TIBUF ; "top of input buffer" TC-IBC FIX ; "# chars in input buffer" TC-OBUF ; "output buffer" TC-TOBUF ; "top of output buffer" TC-OBC FIX ; "# chars in output buffer" TC-QUEUE TC-QCT FIX TC-MODE FIX TC-SMODE FIX ; "Mode information for TTY" TC-TTY ; "TTY information"> ; "Bits in TC-MODE and TC-SMODE" ; "Defaultly on" ; "Defaultly off" ; "Defaultly on--do something at end of page" ; "Defaultly on--wrap at end of page" ; "Defaultly on--do --more-- instead of ^S/^Q" ; "On until we know what the cursor position is" FIX>> ; "Offsets in TT-SPEC-CHARS" ; "ctrl-R" ; "ctrl-W" ; "ctrl-V" ; "rubout" ; "ctrl-U" ; "True when in funny mode" TT-SPEC-CHARS STRING ; "User's definitions of editing chars" TT-OSPEED FIX ; "Output speed, for padding" TT-X FIX ; "Current column" TT-Y FIX ; "Current line" TT-SAV-X ; "Saved X position" TT-SAV-Y ; "Saved Y position" TT-LAST-IN ; "Last line input happened on" TT-LAST-MORE FIX ; "Set to 0 when more happens" TT-DESC TTY-DESC TT-MORE-LINES > TST-SGTTYB STRING TST-LTCHARS STRING> "MACROS" ; "Test the mode word of the channel" >
>>>) (>>)>> .MODE !.FOO>> >>> ; "Update the mud-chan, to account for cursor motion" .X > >>> <1 .X>>>) ()>)>)> .Y > >>> <1 .Y>>>) ()> !.L)>)> > )) !.L)>>)>> ) (TD )) ) (T 1>)>) (<==? .OPER PAGE-HEIGHT> ) (T )>) (<==? .OPER PAGE-X> <0? .NEW>> ) (T ) (RNEW 1>>)) >)>) (T )>) (<==? .OPER PAGE-Y> <0? .NEW>> ) (T ) (RNEW 1>>)) >)>) (T )>)>>