Qore Programming Language Reference Manual 0.8.8

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

All Classes Namespaces Functions Variables Groups Pages
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
165 bool isEqual(Termios termios);
166
167 public:
169
186 nothing setCC(softint offset, softint value);
187
188 public:
190
203 nothing setCFlag(softint flag);
204
205 public:
207
220 nothing setIFlag(softint flag);
221
222 public:
224
241 nothing setLFlag(softint flag);
242
243 public:
245
258 nothing setOFlag(softint flag);
259
260 public:
262
279 static hash getWindowSize();
280 };
285
287 const ALTWERASE = ALTWERASE;
289 const ECHO = ECHO;
291 const ECHOCTL = ECHOCTL;
293 const ECHOE = ECHOE;
295 const ECHOKE = ECHOKE;
297 const ECHONL = ECHONL;
299 const ECHOPRT = ECHOPRT;
301 const EXTPROC = EXTPROC;
303 const FLUSHO = FLUSHO;
305 const ICANON = ICANON;
307 const IEXTEN = IEXTEN;
309 const ISIG = ISIG;
311 const NOFLSH = NOFLSH;
313 const NOKERNINFO = NOKERNINFO;
315 const PENDIN = PENDIN;
317 const TOSTOP = TOSTOP;
319
323
325 const CCAR_OFLOW = CCAR_OFLOW;
327 const CCTS_OFLOW = CCTS_OFLOW;
329 const CDSR_OFLOW = CDSR_OFLOW;
331 const CLOCAL = CLOCAL;
333 const CREAD = CREAD;
335 const CRTSCTS = CRTSCTS;
337 const CRTS_IFLOW = CRTS_IFLOW;
339 const CS5 = CS5;
341 const CS6 = CS6;
343 const CS7 = CS7;
345 const CS8 = CS8;
347 const CSIZE = CSIZE;
349 const CSTOPB = CSTOPB;
351 const HUPCL = HUPCL;
353 const MDMBUF = MDMBUF;
355 const PARENB = PARENB;
357 const PARODD = PARODD;
359
363
365 const OCRNL = OCRNL;
367 const OLCUC = OLCUC;
369 const ONLCR = ONLCR;
371 const ONLRET = ONLRET;
373 const ONOCR = ONOCR;
375 const ONOEOT = ONOEOT;
377 const OPOST = OPOST;
379 const OXTABS = OXTABS;
381
385
387 const BRKINT = BRKINT;
389 const ICRNL = ICRNL;
391 const IGNBRK = IGNBRK;
393 const IGNCR = IGNCR;
395 const IGNPAR = IGNPAR;
397 const IMAXBEL = IMAXBEL;
399 const INLCR = INLCR;
401 const INPCK = INPCK;
403 const ISTRIP = ISTRIP;
405 const IUCLC = IUCLC;
407 const IXANY = IXANY;
409 const IXOFF = IXOFF;
411 const IXON = IXON;
413 const PARMRK = PARMRK;
415
419
421 const VDISCARD = VDISCARD;
423 const VDSUSP = VDSUSP;
425 const VEOF = VEOF;
427 const VEOL = VEOL;
429 const VEOL2 = VEOL2;
431 const VERASE = VERASE;
433 const VINTR = VINTR;
435 const VKILL = VKILL;
437 const VLNEXT = VLNEXT;
439 const VMIN = VMIN;
441 const VQUIT = VQUIT;
443 const VREPRINT = VREPRINT;
445 const VSTART = VSTART;
447 const VSTATUS = VSTATUS;
449 const VSTOP = VSTOP;
451 const VSUSP = VSUSP;
453 const VTIME = VTIME;
455 const VWERASE = VWERASE;
457 const _POSIX_VDISABLE = _POSIX_VDISABLE;
459
463
465 const TCSADRAIN = TCSADRAIN;
467 const TCSAFLUSH = TCSAFLUSH;
469 const TCSANOW = TCSANOW;
471 const TCSASOFT = TCSASOFT;
473 };
Qore::IGNCR
const IGNCR
ignore CR
Definition: QC_TermIOS.dox.h:393
Qore::ISTRIP
const ISTRIP
strip 8th bit off chars
Definition: QC_TermIOS.dox.h:403
Qore::VEOF
const VEOF
subscript for the EOF character
Definition: QC_TermIOS.dox.h:425
Qore::ECHONL
const ECHONL
echo NL even if ECHO is off
Definition: QC_TermIOS.dox.h:297
Qore::ECHOPRT
const ECHOPRT
visual erase mode for hardcopy
Definition: QC_TermIOS.dox.h:299
Qore::TCSANOW
const TCSANOW
make change immediate
Definition: QC_TermIOS.dox.h:469
Qore::TermIOS::isEqual
bool isEqual(Termios termios)
Returns True if the TermIOS object passed as an argument is equal to the current object; False if not...
Qore::TermIOS::getWindowSize
static hash getWindowSize()
Returns a hash giving the current terminal window size in hash keys &quot;rows&quot; and &quot;columns&quot;.
Qore::ONOCR
const ONOCR
no CR output at column 0
Definition: QC_TermIOS.dox.h:373
Qore::ONLRET
const ONLRET
NL performs CR function.
Definition: QC_TermIOS.dox.h:371
Qore::NOKERNINFO
const NOKERNINFO
no kernel output from VSTATUS
Definition: QC_TermIOS.dox.h:313
Qore::VSTATUS
const VSTATUS
subscript for the character
Definition: QC_TermIOS.dox.h:447
Qore::VSTOP
const VSTOP
subscript for the VSTOP character
Definition: QC_TermIOS.dox.h:449
Qore::ECHOE
const ECHOE
visually erase chars
Definition: QC_TermIOS.dox.h:293
Qore::ECHOKE
const ECHOKE
visual erase for line kill
Definition: QC_TermIOS.dox.h:295
Qore::ONOEOT
const ONOEOT
discard EOT&#39;s (^D) on output
Definition: QC_TermIOS.dox.h:375
Qore::CS7
const CS7
character size mask: 7 bits
Definition: QC_TermIOS.dox.h:343
Qore::TCSASOFT
const TCSASOFT
flag - don&#39;t alter hardware state
Definition: QC_TermIOS.dox.h:471
Qore::IXON
const IXON
enable output flow control
Definition: QC_TermIOS.dox.h:411
Qore::IXOFF
const IXOFF
enable input flow control
Definition: QC_TermIOS.dox.h:409
Qore::CSIZE
const CSIZE
character size mask
Definition: QC_TermIOS.dox.h:347
Qore::CCTS_OFLOW
const CCTS_OFLOW
CTS flow control of output.
Definition: QC_TermIOS.dox.h:327
Qore::ICRNL
const ICRNL
map CR to NL (ala CRMOD)
Definition: QC_TermIOS.dox.h:389
Qore::ISIG
const ISIG
enable signals INTR, QUIT, [D]SUSP
Definition: QC_TermIOS.dox.h:309
Qore::CS5
const CS5
character size mask: 5 bits
Definition: QC_TermIOS.dox.h:339
Qore::VKILL
const VKILL
subscript for the VKILL character
Definition: QC_TermIOS.dox.h:435
Qore::TCSAFLUSH
const TCSAFLUSH
drain output, flush input
Definition: QC_TermIOS.dox.h:467
Qore::VQUIT
const VQUIT
subscript for the VQUIT character
Definition: QC_TermIOS.dox.h:441
Qore::CCAR_OFLOW
const CCAR_OFLOW
DCD flow control of output.
Definition: QC_TermIOS.dox.h:325
Qore::TermIOS::setLFlag
nothing setLFlag(softint flag)
Sets the local mode flag for the object from a mask of Terminal Attribute Local Mode Constants...
Qore::VSTART
const VSTART
subscript for the VSTART character
Definition: QC_TermIOS.dox.h:445
Qore::NOFLSH
const NOFLSH
don&#39;t flush after interrupt
Definition: QC_TermIOS.dox.h:311
Qore::TCSADRAIN
const TCSADRAIN
drain output, then change
Definition: QC_TermIOS.dox.h:465
Qore::CRTS_IFLOW
const CRTS_IFLOW
RTS flow control of input.
Definition: QC_TermIOS.dox.h:337
Qore::VINTR
const VINTR
subscript for the VINTR character
Definition: QC_TermIOS.dox.h:433
Qore::TermIOS::setCC
nothing setCC(softint offset, softint value)
Sets the value of the given control character.
Qore::ONLCR
const ONLCR
map NL to CR-NL (ala CRMOD)
Definition: QC_TermIOS.dox.h:369
Qore::ECHOCTL
const ECHOCTL
echo control chars as ^(Char)
Definition: QC_TermIOS.dox.h:291
Qore::IGNBRK
const IGNBRK
ignore BREAK condition
Definition: QC_TermIOS.dox.h:391
Qore::MDMBUF
const MDMBUF
old name for CCAR_OFLOW
Definition: QC_TermIOS.dox.h:353
Qore::VDSUSP
const VDSUSP
subscript for the VDSUSP character
Definition: QC_TermIOS.dox.h:423
Qore::TermIOS::getIFlag
int getIFlag()
Returns the input mode flag for the object.
Qore::PENDIN
const PENDIN
retype pending input (state)
Definition: QC_TermIOS.dox.h:315
Qore::PARMRK
const PARMRK
mark parity and framing errors
Definition: QC_TermIOS.dox.h:413
Qore::CLOCAL
const CLOCAL
ignore modem status lines
Definition: QC_TermIOS.dox.h:331
Qore::OCRNL
const OCRNL
map CR to NL on output
Definition: QC_TermIOS.dox.h:365
Qore::VERASE
const VERASE
subscript for the VERASE character
Definition: QC_TermIOS.dox.h:431
Qore::VTIME
const VTIME
subscript for the VTIME value
Definition: QC_TermIOS.dox.h:453
Qore::TermIOS::setCFlag
nothing setCFlag(softint flag)
Sets the control mode flag for the object from a mask of Terminal Attribute Control Mode Constants...
Qore::OPOST
const OPOST
enable following output processing
Definition: QC_TermIOS.dox.h:377
Qore::TermIOS::setIFlag
nothing setIFlag(softint flag)
Sets the input mode flag for the object from a mask of Terminal Attributes Input Mode Constants...
Qore::CRTSCTS
const CRTSCTS
CTS flow control of output and RTS flow control of input.
Definition: QC_TermIOS.dox.h:335
Qore::TermIOS::copy
copy()
Returns a copy of the object.
Qore::TermIOS::getLFlag
int getLFlag()
Returns the local mode flag for the object.
Qore::TermIOS::constructor
constructor()
Creates the TermIOS object with random contents.
Qore::CS6
const CS6
character size mask: 6 bits
Definition: QC_TermIOS.dox.h:341
Qore::IGNPAR
const IGNPAR
ignore (discard) parity errors
Definition: QC_TermIOS.dox.h:395
Qore::ALTWERASE
const ALTWERASE
use alternate WERASE algorithm
Definition: QC_TermIOS.dox.h:287
Qore::INLCR
const INLCR
map NL into CR
Definition: QC_TermIOS.dox.h:399
Qore::TermIOS::getCC
int getCC(softint cc)
Returns the integer value for the given control character from the given control character code...
Qore::TermIOS::getCFlag
int getCFlag()
Returns the control mode flag for the object.
Qore::CSTOPB
const CSTOPB
send 2 stop bits
Definition: QC_TermIOS.dox.h:349
Qore::HUPCL
const HUPCL
hang up on last close
Definition: QC_TermIOS.dox.h:351
Qore::ICANON
const ICANON
canonicalize input lines
Definition: QC_TermIOS.dox.h:305
Qore::IXANY
const IXANY
any char will restart after stop
Definition: QC_TermIOS.dox.h:407
Qore::FLUSHO
const FLUSHO
output being flushed (state)
Definition: QC_TermIOS.dox.h:303
Qore::TermIOS::getOFlag
int getOFlag()
Returns the output mode flag for the object.
Qore::VLNEXT
const VLNEXT
subscript for the VLNEXT character
Definition: QC_TermIOS.dox.h:437
Qore::VEOL2
const VEOL2
subscript for the EOL2 character
Definition: QC_TermIOS.dox.h:429
Qore::BRKINT
const BRKINT
map BREAK to SIGINTR
Definition: QC_TermIOS.dox.h:387
Qore::IEXTEN
const IEXTEN
enable DISCARD and LNEXT
Definition: QC_TermIOS.dox.h:307
Qore::VREPRINT
const VREPRINT
subscript for the VREPRINT character
Definition: QC_TermIOS.dox.h:443
Qore::VSUSP
const VSUSP
subscript for the VSUSP character
Definition: QC_TermIOS.dox.h:451
Qore::CS8
const CS8
character size mask: 8 bits
Definition: QC_TermIOS.dox.h:345
Qore::TermIOS
This class allows Qore scripts to get or set terminal settings on UNIX platforms. ...
Definition: QC_TermIOS.dox.h:44
Qore::CREAD
const CREAD
enable receiver
Definition: QC_TermIOS.dox.h:333
Qore::IMAXBEL
const IMAXBEL
ring bell on input queue full
Definition: QC_TermIOS.dox.h:397
Qore::VDISCARD
const VDISCARD
subscript for the VDISCARD character
Definition: QC_TermIOS.dox.h:421
Qore::ECHO
const ECHO
enable echoing
Definition: QC_TermIOS.dox.h:289
Qore::hash
hash hash(object obj)
Returns a hash of an object&#39;s members.
Qore::TermIOS::setOFlag
nothing setOFlag(softint flag)
Sets the output mode flag for the object from a mask of Terminal Attributes Output Mode Constants...
Qore::OXTABS
const OXTABS
expand tabs to spaces
Definition: QC_TermIOS.dox.h:379
Qore::CDSR_OFLOW
const CDSR_OFLOW
DSR flow control of output.
Definition: QC_TermIOS.dox.h:329
Qore::VWERASE
const VWERASE
subscript for the VWERASE character
Definition: QC_TermIOS.dox.h:455
Qore::_POSIX_VDISABLE
const _POSIX_VDISABLE
if the value of any key is this value, it means that the key is disabled
Definition: QC_TermIOS.dox.h:457
Qore::VEOL
const VEOL
subscript for the EOL character
Definition: QC_TermIOS.dox.h:427
Qore::EXTPROC
const EXTPROC
external processing
Definition: QC_TermIOS.dox.h:301
Qore::VMIN
const VMIN
subscript for the VMIN value
Definition: QC_TermIOS.dox.h:439
Qore::PARENB
const PARENB
parity enable
Definition: QC_TermIOS.dox.h:355
Qore::PARODD
const PARODD
odd parity, else even
Definition: QC_TermIOS.dox.h:357
Qore::TOSTOP
const TOSTOP
stop background jobs from output
Definition: QC_TermIOS.dox.h:317
Qore::INPCK
const INPCK
enable checking of parity errors
Definition: QC_TermIOS.dox.h:401