Upstream update 211964d56ee00a7d46e251cbc150afb79138ae37

Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Tue Feb 7 20:00:59 2023 +0100

    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
This commit is contained in:
Ashish Kumar Yadav 2023-06-02 04:10:29 +05:30
parent a6b2a0a2ac
commit af12faf1f4
1 changed files with 3 additions and 0 deletions

View File

@ -2836,6 +2836,9 @@ check_control_code:
* they must not cause conflicts with sequences.
*/
if (control) {
/* in UTF-8 mode ignore handling C1 control characters */
if (IS_SET(MODE_UTF8) && ISCONTROLC1(u))
return;
tcontrolcode(u);
/*
* control codes are not shown ever