Next: Line structure, Up: Architecture notes [Contents]
There are two possible ways DomTerm can detect cooked vs raw mode:
Unfortunately, few modern operating systems provide a good way
to request such notication.
Linux has the EXTPROC flag which is inspired by
the System V Streams packet mode.
This adds an extra indicator byte to the terminal input stream.
This mode is enabled by the domterm --tty-packet-mode=extproc
command-line option.
This is the default when available.
domterm server,
which checks the mode of the terminal:
If the PTY is in raw mode, the character is sent to the application.
If the PTY is in cooked mode, the character is sent back to the
DomTerm front-end, which enters line-edit mode, inserting
the character in the input area.
Subsequent characters (until Enter) are handled
locally by DomTerm without a trip to the backend.