/* Ported to GNU C openVMS/Alpha by Klaus Kämpf, kkaempf@progis.de */ /* * * Terminal extended $QIO (itemlist read) definitions */ #ifndef _TRMDEF_H #define _TRMDEF_H /* define symbols for the item list qio format */ /* item list type codes */ #define TRM$_MODIFIERS 0 #define TRM$_EDITMODE 1 #define TRM$_TIMEOUT 2 #define TRM$_TERM 3 #define TRM$_PROMPT 4 #define TRM$_INISTRNG 5 #define TRM$_PICSTRNG 6 #define TRM$_FILLCHR 7 #define TRM$_INIOFFSET 8 #define TRM$_ALTECHSTR 9 #define TRM$_ESCTRMOVR 10 #define TRM$_LASTITM 11 /* must remain the last item */ #define TRM$_RECLINE 31 /* reserved for exclusive use by Japanese input method */ /* editmode type codes */ #define TRM$K_EM_DEFAULT 0 #define TRM$K_EM_RDVERIFY 1 #define TRM$V_TM_NOECHO 6 #define TRM$V_TM_TIMED 7 #define TRM$V_TM_CVTLOW 8 #define TRM$V_TM_NOFILTR 9 #define TRM$V_TM_DSABLMBX 10 #define TRM$V_TM_PURGE 11 #define TRM$V_TM_TRMNOECHO 12 #define TRM$V_TM_REFRESH 13 #define TRM$V_TM_ESCAPE 14 #define TRM$V_TM_NOEDIT 15 #define TRM$V_TM_NORECALL 16 #define TRM$V_TM_R_JUST 17 #define TRM$V_TM_AUTO_TAB 18 #define TRM$V_TM_ARROWS 19 #define TRM$V_TM_TERM_ARROW 20 #define TRM$V_TM_TERM_DEL 21 #define TRM$V_TM_TOGGLE 22 #define TRM$V_TM_OTHERWAY 23 #define TRM$V_TM_NOCLEAR 24 #define TRM$M_TM_NOECHO (1< as terminator */ unsigned trm$v_tm_toggle : 1; /* allow insert/overstrike toggle */ unsigned trm$v_tm_otherway : 1; /* overstrike R-justify or insert L-justify */ unsigned trm$v_tm_noclear : 1; /* don't replace fill with clear after first non-fill */ unsigned : 7; } trm$r_trmdef_bits0; struct { /* picture string mask */ unsigned char trm$v_cv_upper : 1; /* upper case */ unsigned char trm$v_cv_lower : 1; /* lower case */ unsigned char trm$v_cv_numeric : 1; /* numeric (0-9) */ unsigned char trm$v_cv_numpunc : 1; /* numeric punctuation (+ - .) */ unsigned char trm$v_cv_printable : 1; /* printable character */ unsigned char trm$v_cv_any : 1; /* any character */ unsigned char : 2; } trm$r_trmdef_bits1; struct { unsigned char trm$v_st_field_full: 1; /* field full condition IOSB+7 contains index to cursor */ unsigned char trm$v_st_otherway : 1; /* left-justify insert OR right-justify overstrike */ unsigned char : 6; } trm$r_trmdef_bits2; }; #endif /*_TRMDEF_H*/