JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Add some documentetion to tsetmode
authorRoberto E. Vargas Caballero <k0ga@shike2.com>
Mon, 24 Sep 2012 08:29:37 +0000 (10:29 +0200)
committerRoberto E. Vargas Caballero <k0ga@shike2.com>
Mon, 24 Sep 2012 08:29:37 +0000 (10:29 +0200)
commit74d6abfee5a1455c7c126d6b78760efd65d9d7c3
tree0a4e8673008ea81eb0dcb1f8b4d7f6d534ac0433
parentc3b6345595c6b5ec5925544a2f462458f16cbf6a
Add some documentetion to tsetmode

The names of the terminal modes supported by vt102 are (taken from the VT220
programmer reference manual):

Table 4-7 ANSI-Standardized Modes
Name  Mnemonic     Parameter (Ps)
Error (ignored)     -         0 (3/0)
Keyboard action     KAM       2 (3/2)
Insert/replace     IRM       4 (3/4)
Send/receive     SRM       12 (3/1 3/2)
Line feed/new line     LNM       20 (3/2 3/0)

Table 4-8 ANSI-Compatible DEC Private Modes
Name  Mnemonic   Parameter (Ps)
Error (ignored)   -     0 (3/0)
Cursor key   DECCKM    1 (3/1)
ANSI/VT52   DECANM    2 (3/2)
Column   DECCOLM   3 (3/3)
Scroll   DECSCLM   4 (3/4)
Screen   DECSCNM   5 (3/5)
Origin   DECOM     6 (3/6)
Auto wrap   DECAWM    7 (3/7)
Auto repeat   DECARM    8 (3/8)
Printer form feed   DECPFF    18 (3/1 3/8)
Printer extent   DECPEX    19 (3/1 3/9)
Text cursor enable   DECTCEM   25 (3/2 3/5)
National replacement character sets DECNRCM 42 (3/4 3/2)

This patch adds a comment for each one of these sequences.
---
 st.c |   26 +++++++++++++++++++++-----
 1 file changed, 21 insertions(+), 5 deletions(-)
st.c