ignore C1 control characters in UTF-8 mode
authorHiltjo Posthuma <hiltjo@codemadness.org>
Tue, 7 Feb 2023 19:00:59 +0000 (20:00 +0100)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Tue, 7 Feb 2023 19:00:59 +0000 (20:00 +0100)
commit211964d56ee00a7d46e251cbc150afb79138ae37
tree50210c0a78492846ffd4da6a677d9b26d9eca8e5
parentf17abd25b376c292f783062ecf821453eaa9cc4c
ignore C1 control characters in UTF-8 mode

Ignore processing and printing C1 control characters in UTF-8 mode.
These are in the range: 0x80 - 0x9f.

By default in st the mode is set to UTF-8.

This matches more the behaviour of xterm with the options -u8 or +u8 also.
Also see the xterm resource "allowC1Printable".

Let me know if this breaks something, in most cases I don't think so.

As usual a very good reference is:
https://invisible-island.net/xterm/ctlseqs/ctlseqs.html
st.c