diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2014-06-15 14:50:00 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2014-07-18 12:53:41 +0200 |
commit | 1c9633d669948155455e29b0c6e770995a8b1ca3 (patch) | |
tree | 9fac4ba6ccdd564b36caa2363999667aa601f182 /units/getty@.service.m4 | |
parent | 28622e8f5b28412d97bf2f3a5df49c419be1e2c5 (diff) |
terminal: add parser state-machine
The term-parser is used to parse any input from TTY-clients. It reads CSI,
DCS, OSC and ST control sequences and normal escape sequences. It doesn't
do anything with the parsed data besides detecting the sequence and
returning it. The caller has to react to them.
The parser also comes with its own UTF-8 helpers. The reason for that is
that we don't want to assert() or hard-fail on parsing errors. Instead,
we treat any invalid UTF-8 sequences as ISO-8859-1. This allows pasting
invalid data into a terminal (which cannot be controlled through the TTY,
anyway) and we still deal with it in a proper manner.
This is _required_ for 8-bit and 7-bit DEC modes (including the g0-g3
mappings), so it's not just an ugly fallback because we can (it's still
horribly ugly but at least we have an excuse).
Diffstat (limited to 'units/getty@.service.m4')
0 files changed, 0 insertions, 0 deletions