Gambas Documentation
Application Repository
Code Snippets
Compilation & Installation
Components
gb
gb.args
gb.cairo
gb.chart
gb.clipper
gb.complex
gb.compress
gb.crypt
gb.data
gb.db
gb.db.form
gb.db.mysql
gb.db.odbc
gb.db.postgresql
gb.db.sqlite2
gb.db.sqlite3
gb.dbus
gb.dbus.trayicon
gb.debug
gb.desktop
gb.desktop.gnome.keyring
gb.desktop.x11
gb.eval
gb.eval.highlight
gb.form
gb.form.dialog
gb.form.editor
gb.form.htmlview
gb.form.mdi
gb.form.print
gb.form.stock
gb.form.terminal
gb.gmp
gb.gsl
gb.gtk
gb.gtk.opengl
gb.gtk3
gb.gtk3.opengl
gb.gtk3.webview
gb.gui
gb.gui.opengl
gb.gui.qt
gb.gui.qt.ext
gb.gui.qt.opengl
gb.gui.qt.webkit
gb.gui.trayicon
gb.gui.webview
gb.hash
gb.highlight
gb.image
gb.image.effect
gb.image.imlib
gb.image.io
gb.inotify
gb.jit
gb.libxml
gb.logging
gb.map
gb.markdown
gb.media
gb.media.form
gb.memcached
gb.mime
gb.mongodb
gb.mysql
gb.ncurses
gb.net
gb.net.curl
gb.net.pop3
gb.net.smtp
gb.openal
gb.opengl
gb.opengl.glsl
gb.opengl.glu
gb.opengl.sge
gb.openssl
gb.option
gb.pcre
gb.pdf
gb.poppler
gb.qt4
gb.qt4.ext
gb.qt4.opengl
gb.qt4.webkit
gb.qt4.webview
gb.qt5
gb.qt5.ext
gb.qt5.opengl
gb.qt5.webkit
gb.qt5.webview
gb.qt6
gb.qt6.ext
gb.qt6.opengl
gb.qt6.webview
gb.report
gb.report2
gb.scanner
gb.sdl
gb.sdl.sound
gb.sdl2
gb.sdl2.audio
gb.settings
gb.signal
gb.term
.Stream.Term
Term
TerminalSettings
BRKINT
BSDLY
CLOCAL
CMSPAR
Copy
CRDLY
CREAD
CRTSCTS
CSIZE
CSTOPB
ECHO
ECHOCTL
ECHOE
ECHOK
ECHOKE
ECHONL
ECHOPRT
FFDLY
FLUSHO
HUPCL
ICANON
ICRNL
IEXTEN
IGNBRK
IGNCR
IGNPAR
INLCR
INPCK
InputSpeed
ISIG
ISTRIP
IUCLC
IUTF8
IXANY
IXOFF
IXON
MakeRaw
NLDLY
NOFLSH
OCRNL
OFILL
OLCUC
ONLCR
ONLRET
ONOCR
OPOST
OutputSpeed
PARENB
PARMRK
PARODD
PENDIN
TABDLY
TOSTOP
VDISCARD
VEOF
VEOL
VEOL2
VERASE
VINTR
VKILL
VLNEXT
VMIN
VQUIT
VREPRINT
VSTART
VSTOP
VSUSP
VTDLY
VTIME
VWERASE
XCASE
gb.test
gb.util
gb.util.web
gb.v4l
gb.vb
gb.web
gb.web.feed
gb.web.form
gb.web.gui
gb.xml
gb.xml.html
gb.xml.rpc
gb.xml.xslt
Controls pictures
Deprecated components
Developer Documentation
Development Environment Documentation
Documents
Error Messages
Gambas Playground
How To's
Language Index
Language Overviews
Last Changes
Lexicon
README
Search the wiki
To Do
Topics
Tutorials
Wiki License
Wiki Manual

TerminalSettings (gb.term)

This class allows to define the parameters of a terminal stream.

This is a direct interface to the struct termios system structure.

This class is not creatable.

Properties
BRKINT   Return or set if a BREAK may interrupts the terminal foreground process.
BSDLY   Backspace delay mask.
CLOCAL   Ignore modem control lines.
CMSPAR   Use "stick" (mark/space) parity (supported on certain serial devices).
CRDLY   Carriage return delay mask.
CREAD   Enable receiver.
CRTSCTS   Enable RTS/CTS (hardware) flow control.
CSIZE   Character size mask.
CSTOPB   Set two stop bits, rather than one.
ECHO   Echo input characters.
ECHOCTL   Echo control characters.
ECHOE   If ICANON is also set, the ERASE character erases the preceding input character, and WERASE erases the preceding word.
ECHOK   If ICANON is also set, the KILL character erases the current line.
ECHOKE   If ICANON is also set, KILL is echoed by erasing each character on the line, as specified by ECHOE and ECHOPRT.
ECHONL   If ICANON is also set, echo the NL character even if ECHO is not set.
ECHOPRT   If ICANON and ECHO are also set, characters are printed as they are being erased.
FFDLY   Form feed delay mask.
FLUSHO   Output is being flushed. This flag is toggled by typing the DISCARD character.
HUPCL   Lower modem control lines after last process closes the device (hang up).
ICANON   Enable canonical mode.
ICRNL   Translate carriage return to newline on input (unless IGNCR is set).
IEXTEN   Enable implementation-defined input processing.
IGNBRK   Ignore BREAK condition on input.
IGNCR   Ignore carriage return on input.
IGNPAR   Ignore framing errors and parity errors.
INLCR   Translate NL to CR on input.
INPCK   Enable input parity checking.
ISIG   When any of the characters INTR, QUIT, SUSP, or DSUSP are received, generate the corresponding signal.
ISTRIP   Strip off eighth bit.
IUCLC   Map uppercase characters to lowercase on input.
IUTF8   Input is UTF-8. This allows character-erase to be correctly performed in cooked mode.
IXANY   Typing any character will restart stopped output.
IXOFF   Enable XON/XOFF flow control on input.
IXON   Enable XON/XOFF flow control on output.
InputSpeed   Return or set the terminal input speed.
NLDLY   Newline delay mask.
NOFLSH   Disable flushing the input and output queues when generating signals for the INT, QUIT, and SUSP characters.
OCRNL   Map CR to NL on output.
OFILL   Send fill characters for a delay, rather than using a timed delay.
OLCUC   Map lowercase characters to uppercase on output.
ONLCR   Map NL to CR-NL on output.
ONLRET   Don't output CR.
ONOCR   Don't output CR at column 0.
OPOST   Enable implementation-defined output processing.
OutputSpeed   Return or set the terminal output speed.
PARENB   Enable parity generation on output and parity checking for input.
PARMRK   Return or set if input bytes with parity or framing errors are marked when passed to the program.
PARODD   If set, then parity for input and output is odd; otherwise even parity is used.
PENDIN   All characters in the input queue are reprinted when the next character is read.
TABDLY   Horizontal tab delay mask.
TOSTOP   Send the SIGTTOU signal to the process group of a background process which tries to write to its controlling terminal.
VDISCARD   Toggle start/stop discarding pending output.
VEOF   End-of-file character (EOF).
VEOL   Additional end-of-line character (EOL).
VEOL2   Yet another end-of-line character (EOL2).
VERASE   Erase character (ERASE).
VINTR   Interrupt character (INTR).
VKILL   Kill character (KILL).
VLNEXT   Quotes the next input character, depriving it of a possible special meaning.
VMIN   Minimum number of characters for noncanonical read.
VQUIT   Quit character (QUIT).
VREPRINT   Reprint unread characters (REPRINT).
VSTART   Start character (START).
VSTOP   Stop character (STOP).
VSUSP   Suspend character (SUSP).
VTDLY   Vertical tab delay mask.
VTIME   Timeout in deciseconds for noncanonical read.
VWERASE   Word erase (WERASE).
XCASE   If ICANON is also set, terminal is uppercase only.

Methods
Copy   Returns a copy of the TerminalSettings object.
MakeRaw   Sets the terminal to "raw" mode.