Bug 401097 - Ignores space in escape sequence, misinterprets SPD as SU
Summary: Ignores space in escape sequence, misinterprets SPD as SU
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: emulation (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-16 10:03 UTC by Egmont Koblinger
Modified: 2022-01-04 00:21 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: v22.04.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Egmont Koblinger 2018-11-16 10:03:19 UTC
Ecma-48 defines:

8.3.130 SPD - SELECT PRESENTATION DIRECTIONS
    Representation: CSI Ps1;Ps2  02/00 05/03
    Parameter default value: Ps1 = 0; Ps2 = 0

8.3.147 SU - SCROLL UP
    Representation: CSI Pn 05/03
    Parameter default value: Pn = 1

Recently Konsole changed its behavior so that the command
    echo -ne '\e[3 S'
scrolls up by 3 lines. That is, the space inside the escape sequence is ignored, the SPD sequence is incorrectly interpreted as a SU instead.
Comment 1 ninjalj 2022-01-04 00:21:53 UTC
Fixed in git, by a commit adding support for DECRQCRA (which also has an Intermediate byte).