Loading...
Searching...
No Matches
QC_TermIOS.dox.h
namespace Qore {
class TermIOS {
public:
constructor();
public:
copy();
public:
int getCC(softint cc);
public:
int getCFlag();
public:
int getIFlag();
public:
int getLFlag();
public:
int getOFlag();
public:
bool isEqual(Termios termios);
public:
nothing setCC(softint offset, softint value);
public:
nothing setCFlag(softint flag);
public:
nothing setIFlag(softint flag);
public:
nothing setLFlag(softint flag);
public:
nothing setOFlag(softint flag);
public:
static hash getWindowSize();
};
const ALTWERASE = ALTWERASE;
const ECHO = ECHO;
const ECHOCTL = ECHOCTL;
const ECHOE = ECHOE;
const ECHOKE = ECHOKE;
const ECHONL = ECHONL;
const ECHOPRT = ECHOPRT;
const EXTPROC = EXTPROC;
const FLUSHO = FLUSHO;
const ICANON = ICANON;
const IEXTEN = IEXTEN;
const ISIG = ISIG;
const NOFLSH = NOFLSH;
const NOKERNINFO = NOKERNINFO;
const PENDIN = PENDIN;
const TOSTOP = TOSTOP;
const CCAR_OFLOW = CCAR_OFLOW;
const CCTS_OFLOW = CCTS_OFLOW;
const CDSR_OFLOW = CDSR_OFLOW;
const CLOCAL = CLOCAL;
const CREAD = CREAD;
const CRTSCTS = CRTSCTS;
const CRTS_IFLOW = CRTS_IFLOW;
const CS5 = CS5;
const CS6 = CS6;
const CS7 = CS7;
const CS8 = CS8;
const CSIZE = CSIZE;
const CSTOPB = CSTOPB;
const HUPCL = HUPCL;
const MDMBUF = MDMBUF;
const PARENB = PARENB;
const PARODD = PARODD;
const OCRNL = OCRNL;
const OLCUC = OLCUC;
const ONLCR = ONLCR;
const ONLRET = ONLRET;
const ONOCR = ONOCR;
const ONOEOT = ONOEOT;
const OPOST = OPOST;
const OXTABS = OXTABS;
const BRKINT = BRKINT;
const ICRNL = ICRNL;
const IGNBRK = IGNBRK;
const IGNCR = IGNCR;
const IGNPAR = IGNPAR;
const IMAXBEL = IMAXBEL;
const INLCR = INLCR;
const INPCK = INPCK;
const ISTRIP = ISTRIP;
const IUCLC = IUCLC;
const IXANY = IXANY;
const IXOFF = IXOFF;
const IXON = IXON;
const PARMRK = PARMRK;
const VDISCARD = VDISCARD;
const VDSUSP = VDSUSP;
const VEOF = VEOF;
const VEOL = VEOL;
const VEOL2 = VEOL2;
const VERASE = VERASE;
const VINTR = VINTR;
const VKILL = VKILL;
const VLNEXT = VLNEXT;
const VMIN = VMIN;
const VQUIT = VQUIT;
const VREPRINT = VREPRINT;
const VSTART = VSTART;
const VSTATUS = VSTATUS;
const VSTOP = VSTOP;
const VSUSP = VSUSP;
const VTIME = VTIME;
const VWERASE = VWERASE;
const _POSIX_VDISABLE = _POSIX_VDISABLE;
const TCSADRAIN = TCSADRAIN;
const TCSAFLUSH = TCSAFLUSH;
const TCSANOW = TCSANOW;
const TCSASOFT = TCSASOFT;
}
Qore::TermIOS
This class allows Qore scripts to get or set terminal settings on UNIX platforms.
Definition: QC_TermIOS.dox.h:45
Qore::TermIOS::getLFlag
int getLFlag()
Returns the local mode flag for the object.
Qore::TermIOS::getCC
int getCC(softint cc)
Returns the integer value for the given control character from the given control character code.
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::TermIOS::getWindowSize
static hash getWindowSize()
Returns a hash giving the current terminal window size in hash keys "rows" and "columns".
Qore::TermIOS::getIFlag
int getIFlag()
Returns the input mode flag for the object.
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::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::setOFlag
nothing setOFlag(softint flag)
Sets the output mode flag for the object from a mask of Terminal Attributes Output Mode Constants.
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::TermIOS::constructor
constructor()
Creates the TermIOS object with random contents.
Qore::TermIOS::getCFlag
int getCFlag()
Returns the control mode flag for the object.
Qore::TermIOS::getOFlag
int getOFlag()
Returns the output mode flag for the object.
Qore::TermIOS::setCC
nothing setCC(softint offset, softint value)
Sets the value of the given control character.
Qore::TermIOS::copy
copy()
Returns a copy of the object.
Qore::VWERASE
const VWERASE
subscript for the VWERASE character
Definition: QC_TermIOS.dox.h:458
Qore::VERASE
const VERASE
subscript for the VERASE character
Definition: QC_TermIOS.dox.h:434
Qore::VEOL2
const VEOL2
subscript for the EOL2 character
Definition: QC_TermIOS.dox.h:432
Qore::VLNEXT
const VLNEXT
subscript for the VLNEXT character
Definition: QC_TermIOS.dox.h:440
Qore::VREPRINT
const VREPRINT
subscript for the VREPRINT character
Definition: QC_TermIOS.dox.h:446
Qore::VSTATUS
const VSTATUS
subscript for the character
Definition: QC_TermIOS.dox.h:450
Qore::VSUSP
const VSUSP
subscript for the VSUSP character
Definition: QC_TermIOS.dox.h:454
Qore::VSTART
const VSTART
subscript for the VSTART character
Definition: QC_TermIOS.dox.h:448
Qore::VEOL
const VEOL
subscript for the EOL character
Definition: QC_TermIOS.dox.h:430
Qore::VTIME
const VTIME
subscript for the VTIME value
Definition: QC_TermIOS.dox.h:456
Qore::VDISCARD
const VDISCARD
subscript for the VDISCARD character
Definition: QC_TermIOS.dox.h:424
Qore::VKILL
const VKILL
subscript for the VKILL character
Definition: QC_TermIOS.dox.h:438
Qore::VQUIT
const VQUIT
subscript for the VQUIT character
Definition: QC_TermIOS.dox.h:444
Qore::VSTOP
const VSTOP
subscript for the VSTOP character
Definition: QC_TermIOS.dox.h:452
Qore::VEOF
const VEOF
subscript for the EOF character
Definition: QC_TermIOS.dox.h:428
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:460
Qore::VDSUSP
const VDSUSP
subscript for the VDSUSP character
Definition: QC_TermIOS.dox.h:426
Qore::VINTR
const VINTR
subscript for the VINTR character
Definition: QC_TermIOS.dox.h:436
Qore::VMIN
const VMIN
subscript for the VMIN value
Definition: QC_TermIOS.dox.h:442
Qore::MDMBUF
const MDMBUF
old name for CCAR_OFLOW
Definition: QC_TermIOS.dox.h:356
Qore::CLOCAL
const CLOCAL
ignore modem status lines
Definition: QC_TermIOS.dox.h:334
Qore::CSIZE
const CSIZE
character size mask
Definition: QC_TermIOS.dox.h:350
Qore::CS8
const CS8
character size mask: 8 bits
Definition: QC_TermIOS.dox.h:348
Qore::CSTOPB
const CSTOPB
send 2 stop bits
Definition: QC_TermIOS.dox.h:352
Qore::CCAR_OFLOW
const CCAR_OFLOW
DCD flow control of output.
Definition: QC_TermIOS.dox.h:328
Qore::CS7
const CS7
character size mask: 7 bits
Definition: QC_TermIOS.dox.h:346
Qore::CCTS_OFLOW
const CCTS_OFLOW
CTS flow control of output.
Definition: QC_TermIOS.dox.h:330
Qore::PARENB
const PARENB
parity enable
Definition: QC_TermIOS.dox.h:358
Qore::HUPCL
const HUPCL
hang up on last close
Definition: QC_TermIOS.dox.h:354
Qore::CDSR_OFLOW
const CDSR_OFLOW
DSR flow control of output.
Definition: QC_TermIOS.dox.h:332
Qore::CRTSCTS
const CRTSCTS
CTS flow control of output and RTS flow control of input.
Definition: QC_TermIOS.dox.h:338
Qore::CS6
const CS6
character size mask: 6 bits
Definition: QC_TermIOS.dox.h:344
Qore::CREAD
const CREAD
enable receiver
Definition: QC_TermIOS.dox.h:336
Qore::PARODD
const PARODD
odd parity, else even
Definition: QC_TermIOS.dox.h:360
Qore::CS5
const CS5
character size mask: 5 bits
Definition: QC_TermIOS.dox.h:342
Qore::CRTS_IFLOW
const CRTS_IFLOW
RTS flow control of input.
Definition: QC_TermIOS.dox.h:340
Qore::IXON
const IXON
enable output flow control
Definition: QC_TermIOS.dox.h:414
Qore::INLCR
const INLCR
map NL into CR
Definition: QC_TermIOS.dox.h:402
Qore::INPCK
const INPCK
enable checking of parity errors
Definition: QC_TermIOS.dox.h:404
Qore::IXANY
const IXANY
any char will restart after stop
Definition: QC_TermIOS.dox.h:410
Qore::IGNCR
const IGNCR
ignore CR
Definition: QC_TermIOS.dox.h:396
Qore::IMAXBEL
const IMAXBEL
ring bell on input queue full
Definition: QC_TermIOS.dox.h:400
Qore::IXOFF
const IXOFF
enable input flow control
Definition: QC_TermIOS.dox.h:412
Qore::ISTRIP
const ISTRIP
strip 8th bit off chars
Definition: QC_TermIOS.dox.h:406
Qore::IGNBRK
const IGNBRK
ignore BREAK condition
Definition: QC_TermIOS.dox.h:394
Qore::ICRNL
const ICRNL
map CR to NL (ala CRMOD)
Definition: QC_TermIOS.dox.h:392
Qore::BRKINT
const BRKINT
map BREAK to SIGINTR
Definition: QC_TermIOS.dox.h:390
Qore::IGNPAR
const IGNPAR
ignore (discard) parity errors
Definition: QC_TermIOS.dox.h:398
Qore::PARMRK
const PARMRK
mark parity and framing errors
Definition: QC_TermIOS.dox.h:416
Qore::ECHO
const ECHO
enable echoing
Definition: QC_TermIOS.dox.h:292
Qore::ALTWERASE
const ALTWERASE
use alternate WERASE algorithm
Definition: QC_TermIOS.dox.h:290
Qore::ECHONL
const ECHONL
echo NL even if ECHO is off
Definition: QC_TermIOS.dox.h:300
Qore::FLUSHO
const FLUSHO
output being flushed (state)
Definition: QC_TermIOS.dox.h:306
Qore::ECHOKE
const ECHOKE
visual erase for line kill
Definition: QC_TermIOS.dox.h:298
Qore::NOFLSH
const NOFLSH
don't flush after interrupt
Definition: QC_TermIOS.dox.h:314
Qore::ECHOE
const ECHOE
visually erase chars
Definition: QC_TermIOS.dox.h:296
Qore::ECHOCTL
const ECHOCTL
echo control chars as ^(Char)
Definition: QC_TermIOS.dox.h:294
Qore::TOSTOP
const TOSTOP
stop background jobs from output
Definition: QC_TermIOS.dox.h:320
Qore::IEXTEN
const IEXTEN
enable DISCARD and LNEXT
Definition: QC_TermIOS.dox.h:310
Qore::ECHOPRT
const ECHOPRT
visual erase mode for hardcopy
Definition: QC_TermIOS.dox.h:302
Qore::ISIG
const ISIG
enable signals INTR, QUIT, [D]SUSP
Definition: QC_TermIOS.dox.h:312
Qore::PENDIN
const PENDIN
retype pending input (state)
Definition: QC_TermIOS.dox.h:318
Qore::EXTPROC
const EXTPROC
external processing
Definition: QC_TermIOS.dox.h:304
Qore::NOKERNINFO
const NOKERNINFO
no kernel output from VSTATUS
Definition: QC_TermIOS.dox.h:316
Qore::ICANON
const ICANON
canonicalize input lines
Definition: QC_TermIOS.dox.h:308
Qore::ONOCR
const ONOCR
no CR output at column 0
Definition: QC_TermIOS.dox.h:376
Qore::OPOST
const OPOST
enable following output processing
Definition: QC_TermIOS.dox.h:380
Qore::ONOEOT
const ONOEOT
discard EOT's (^D) on output
Definition: QC_TermIOS.dox.h:378
Qore::OXTABS
const OXTABS
expand tabs to spaces
Definition: QC_TermIOS.dox.h:382
Qore::ONLRET
const ONLRET
NL performs CR function.
Definition: QC_TermIOS.dox.h:374
Qore::OCRNL
const OCRNL
map CR to NL on output
Definition: QC_TermIOS.dox.h:368
Qore::ONLCR
const ONLCR
map NL to CR-NL (ala CRMOD)
Definition: QC_TermIOS.dox.h:372
Qore::TCSANOW
const TCSANOW
make change immediate
Definition: QC_TermIOS.dox.h:472
Qore::TCSASOFT
const TCSASOFT
flag - don't alter hardware state
Definition: QC_TermIOS.dox.h:474
Qore::TCSADRAIN
const TCSADRAIN
drain output, then change
Definition: QC_TermIOS.dox.h:468
Qore::TCSAFLUSH
const TCSAFLUSH
drain output, flush input
Definition: QC_TermIOS.dox.h:470
Qore::hash
hash< auto > hash()
Always returns the same hash passed.
Qore
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3