Qore Programming Language Reference Manual  0.8.13
QC_TermIOS.dox.h
1 namespace Qore {
4 
44 class TermIOS {
45 
46 public:
48 
59  constructor();
60 
61 public:
63 
71  copy();
72 
73 public:
75 
92 int getCC(softint cc);
93 
94 public:
96 
106 int getCFlag();
107 
108 public:
110 
120 int getIFlag();
121 
122 public:
124 
134 int getLFlag();
135 
136 public:
138 
148 int getOFlag();
149 
150 public:
152 
166 bool isEqual(Termios termios);
167 
168 public:
170 
187 nothing setCC(softint offset, softint value);
188 
189 public:
191 
204 nothing setCFlag(softint flag);
205 
206 public:
208 
221 nothing setIFlag(softint flag);
222 
223 public:
225 
242 nothing setLFlag(softint flag);
243 
244 public:
246 
259 nothing setOFlag(softint flag);
260 
261 public:
263 
281 static hash getWindowSize();
282 };
287 
291  const ECHO = ECHO;
293  const ECHOCTL = ECHOCTL;
295  const ECHOE = ECHOE;
297  const ECHOKE = ECHOKE;
299  const ECHONL = ECHONL;
301  const ECHOPRT = ECHOPRT;
303  const EXTPROC = EXTPROC;
305  const FLUSHO = FLUSHO;
307  const ICANON = ICANON;
309  const IEXTEN = IEXTEN;
311  const ISIG = ISIG;
313  const NOFLSH = NOFLSH;
317  const PENDIN = PENDIN;
319  const TOSTOP = TOSTOP;
321 
325 
333  const CLOCAL = CLOCAL;
335  const CREAD = CREAD;
337  const CRTSCTS = CRTSCTS;
341  const CS5 = CS5;
343  const CS6 = CS6;
345  const CS7 = CS7;
347  const CS8 = CS8;
349  const CSIZE = CSIZE;
351  const CSTOPB = CSTOPB;
353  const HUPCL = HUPCL;
355  const MDMBUF = MDMBUF;
357  const PARENB = PARENB;
359  const PARODD = PARODD;
361 
365 
367  const OCRNL = OCRNL;
369  const OLCUC = OLCUC;
371  const ONLCR = ONLCR;
373  const ONLRET = ONLRET;
375  const ONOCR = ONOCR;
377  const ONOEOT = ONOEOT;
379  const OPOST = OPOST;
381  const OXTABS = OXTABS;
383 
387 
389  const BRKINT = BRKINT;
391  const ICRNL = ICRNL;
393  const IGNBRK = IGNBRK;
395  const IGNCR = IGNCR;
397  const IGNPAR = IGNPAR;
399  const IMAXBEL = IMAXBEL;
401  const INLCR = INLCR;
403  const INPCK = INPCK;
405  const ISTRIP = ISTRIP;
407  const IUCLC = IUCLC;
409  const IXANY = IXANY;
411  const IXOFF = IXOFF;
413  const IXON = IXON;
415  const PARMRK = PARMRK;
417 
421 
425  const VDSUSP = VDSUSP;
427  const VEOF = VEOF;
429  const VEOL = VEOL;
431  const VEOL2 = VEOL2;
433  const VERASE = VERASE;
435  const VINTR = VINTR;
437  const VKILL = VKILL;
439  const VLNEXT = VLNEXT;
441  const VMIN = VMIN;
443  const VQUIT = VQUIT;
447  const VSTART = VSTART;
449  const VSTATUS = VSTATUS;
451  const VSTOP = VSTOP;
453  const VSUSP = VSUSP;
455  const VTIME = VTIME;
457  const VWERASE = VWERASE;
461 
465 
471  const TCSANOW = TCSANOW;
475 };
const IGNCR
ignore CR
Definition: QC_TermIOS.dox.h:395
const ISTRIP
strip 8th bit off chars
Definition: QC_TermIOS.dox.h:405
const VEOF
subscript for the EOF character
Definition: QC_TermIOS.dox.h:427
const ECHONL
echo NL even if ECHO is off
Definition: QC_TermIOS.dox.h:299
const ECHOPRT
visual erase mode for hardcopy
Definition: QC_TermIOS.dox.h:301
const TCSANOW
make change immediate
Definition: QC_TermIOS.dox.h:471
bool isEqual(Termios termios)
Returns True if the TermIOS object passed as an argument is equal to the current object; False if not...
static hash getWindowSize()
Returns a hash giving the current terminal window size in hash keys "rows" and "columns".
const ONOCR
no CR output at column 0
Definition: QC_TermIOS.dox.h:375
const ONLRET
NL performs CR function.
Definition: QC_TermIOS.dox.h:373
const NOKERNINFO
no kernel output from VSTATUS
Definition: QC_TermIOS.dox.h:315
const VSTATUS
subscript for the character
Definition: QC_TermIOS.dox.h:449
const VSTOP
subscript for the VSTOP character
Definition: QC_TermIOS.dox.h:451
const ECHOE
visually erase chars
Definition: QC_TermIOS.dox.h:295
const ECHOKE
visual erase for line kill
Definition: QC_TermIOS.dox.h:297
const ONOEOT
discard EOT's (^D) on output
Definition: QC_TermIOS.dox.h:377
const CS7
character size mask: 7 bits
Definition: QC_TermIOS.dox.h:345
const TCSASOFT
flag - don't alter hardware state
Definition: QC_TermIOS.dox.h:473
const IXON
enable output flow control
Definition: QC_TermIOS.dox.h:413
const IXOFF
enable input flow control
Definition: QC_TermIOS.dox.h:411
const CSIZE
character size mask
Definition: QC_TermIOS.dox.h:349
const CCTS_OFLOW
CTS flow control of output.
Definition: QC_TermIOS.dox.h:329
const ICRNL
map CR to NL (ala CRMOD)
Definition: QC_TermIOS.dox.h:391
const ISIG
enable signals INTR, QUIT, [D]SUSP
Definition: QC_TermIOS.dox.h:311
const CS5
character size mask: 5 bits
Definition: QC_TermIOS.dox.h:341
const VKILL
subscript for the VKILL character
Definition: QC_TermIOS.dox.h:437
const TCSAFLUSH
drain output, flush input
Definition: QC_TermIOS.dox.h:469
const VQUIT
subscript for the VQUIT character
Definition: QC_TermIOS.dox.h:443
const CCAR_OFLOW
DCD flow control of output.
Definition: QC_TermIOS.dox.h:327
nothing setLFlag(softint flag)
Sets the local mode flag for the object from a mask of Terminal Attribute Local Mode Constants...
const VSTART
subscript for the VSTART character
Definition: QC_TermIOS.dox.h:447
const NOFLSH
don't flush after interrupt
Definition: QC_TermIOS.dox.h:313
const TCSADRAIN
drain output, then change
Definition: QC_TermIOS.dox.h:467
const CRTS_IFLOW
RTS flow control of input.
Definition: QC_TermIOS.dox.h:339
const VINTR
subscript for the VINTR character
Definition: QC_TermIOS.dox.h:435
nothing setCC(softint offset, softint value)
Sets the value of the given control character.
const ONLCR
map NL to CR-NL (ala CRMOD)
Definition: QC_TermIOS.dox.h:371
const ECHOCTL
echo control chars as ^(Char)
Definition: QC_TermIOS.dox.h:293
const IGNBRK
ignore BREAK condition
Definition: QC_TermIOS.dox.h:393
const MDMBUF
old name for CCAR_OFLOW
Definition: QC_TermIOS.dox.h:355
const VDSUSP
subscript for the VDSUSP character
Definition: QC_TermIOS.dox.h:425
int getIFlag()
Returns the input mode flag for the object.
const PENDIN
retype pending input (state)
Definition: QC_TermIOS.dox.h:317
const PARMRK
mark parity and framing errors
Definition: QC_TermIOS.dox.h:415
const CLOCAL
ignore modem status lines
Definition: QC_TermIOS.dox.h:333
const OCRNL
map CR to NL on output
Definition: QC_TermIOS.dox.h:367
const VERASE
subscript for the VERASE character
Definition: QC_TermIOS.dox.h:433
const VTIME
subscript for the VTIME value
Definition: QC_TermIOS.dox.h:455
nothing setCFlag(softint flag)
Sets the control mode flag for the object from a mask of Terminal Attribute Control Mode Constants...
const OPOST
enable following output processing
Definition: QC_TermIOS.dox.h:379
nothing setIFlag(softint flag)
Sets the input mode flag for the object from a mask of Terminal Attributes Input Mode Constants...
const CRTSCTS
CTS flow control of output and RTS flow control of input.
Definition: QC_TermIOS.dox.h:337
copy()
Returns a copy of the object.
int getLFlag()
Returns the local mode flag for the object.
constructor()
Creates the TermIOS object with random contents.
const CS6
character size mask: 6 bits
Definition: QC_TermIOS.dox.h:343
const IGNPAR
ignore (discard) parity errors
Definition: QC_TermIOS.dox.h:397
const ALTWERASE
use alternate WERASE algorithm
Definition: QC_TermIOS.dox.h:289
const INLCR
map NL into CR
Definition: QC_TermIOS.dox.h:401
int getCC(softint cc)
Returns the integer value for the given control character from the given control character code...
int getCFlag()
Returns the control mode flag for the object.
const CSTOPB
send 2 stop bits
Definition: QC_TermIOS.dox.h:351
const HUPCL
hang up on last close
Definition: QC_TermIOS.dox.h:353
const ICANON
canonicalize input lines
Definition: QC_TermIOS.dox.h:307
const IXANY
any char will restart after stop
Definition: QC_TermIOS.dox.h:409
const FLUSHO
output being flushed (state)
Definition: QC_TermIOS.dox.h:305
int getOFlag()
Returns the output mode flag for the object.
const VLNEXT
subscript for the VLNEXT character
Definition: QC_TermIOS.dox.h:439
const VEOL2
subscript for the EOL2 character
Definition: QC_TermIOS.dox.h:431
const BRKINT
map BREAK to SIGINTR
Definition: QC_TermIOS.dox.h:389
const IEXTEN
enable DISCARD and LNEXT
Definition: QC_TermIOS.dox.h:309
const VREPRINT
subscript for the VREPRINT character
Definition: QC_TermIOS.dox.h:445
const VSUSP
subscript for the VSUSP character
Definition: QC_TermIOS.dox.h:453
const CS8
character size mask: 8 bits
Definition: QC_TermIOS.dox.h:347
This class allows Qore scripts to get or set terminal settings on UNIX platforms. ...
Definition: QC_TermIOS.dox.h:44
const CREAD
enable receiver
Definition: QC_TermIOS.dox.h:335
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:2
const IMAXBEL
ring bell on input queue full
Definition: QC_TermIOS.dox.h:399
const VDISCARD
subscript for the VDISCARD character
Definition: QC_TermIOS.dox.h:423
const ECHO
enable echoing
Definition: QC_TermIOS.dox.h:291
hash hash(object obj)
Returns a hash of an object's members.
nothing setOFlag(softint flag)
Sets the output mode flag for the object from a mask of Terminal Attributes Output Mode Constants...
const OXTABS
expand tabs to spaces
Definition: QC_TermIOS.dox.h:381
const CDSR_OFLOW
DSR flow control of output.
Definition: QC_TermIOS.dox.h:331
const VWERASE
subscript for the VWERASE character
Definition: QC_TermIOS.dox.h:457
const _POSIX_VDISABLE
if the value of any key is this value, it means that the key is disabled
Definition: QC_TermIOS.dox.h:459
const VEOL
subscript for the EOL character
Definition: QC_TermIOS.dox.h:429
const EXTPROC
external processing
Definition: QC_TermIOS.dox.h:303
const VMIN
subscript for the VMIN value
Definition: QC_TermIOS.dox.h:441
const PARENB
parity enable
Definition: QC_TermIOS.dox.h:357
const PARODD
odd parity, else even
Definition: QC_TermIOS.dox.h:359
const TOSTOP
stop background jobs from output
Definition: QC_TermIOS.dox.h:319
const INPCK
enable checking of parity errors
Definition: QC_TermIOS.dox.h:403