New ANSI control sequences were added
Hello guys, I would like to contribute to the project with the following:
- It implements Cursor Next Line (CNL) sequence.
- It implments Cursor Previous Line (CPL) sequence.
- Ex: echo -e "Hello\e[3EWorld" or echo -e "Hello\e[3FWorld"
Currently, there is an open bug (418519) with for that. Here is the description:
ANSI code CSI n E means to go down n lines, then go to the beginning of that line.
ANSI code CSI n F means to go up n lines, then go to the beginning of that line.
Konsole is not handling these ANSI codes properly (or at all). I have tested with Gnome terminal and xterm, and they work as expected, so I believe this is a Konsole-specific issue.
STEPS TO REPRODUCE
Run this 2 line bash script:
clear;echo -e "\n\n\n\n\n";
echo -e "Second line\e[1FFirst line\e[2EThird Line\n\n"
Second lineFirst lineThird Line