X-Git-Url: https://jxself.org/git/?p=pdp10-muddle.git;a=blobdiff_plain;f=mim%2Fdevelopment%2Fmim%2Fvax%2Ftty%2Fttytypes.mud;fp=mim%2Fdevelopment%2Fmim%2Fvax%2Ftty%2Fttytypes.mud;h=4cdbf799408c26229d906b94aca6315e1cd7eaf6;hp=0000000000000000000000000000000000000000;hb=d73ace3f3292e320b461b8fcd2e9f5dc5d9684d7;hpb=d530283ea60fb0ddcc28e9c5bd072456afe06e07 diff --git a/mim/development/mim/vax/tty/ttytypes.mud b/mim/development/mim/vax/tty/ttytypes.mud new file mode 100644 index 0000000..4cdbf79 --- /dev/null +++ b/mim/development/mim/vax/tty/ttytypes.mud @@ -0,0 +1,163 @@ +% + +]>> + + + 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 + )>)>> + + \ No newline at end of file