Open keybreak opened 3 years ago
Scripts that send hardcoded escape sequences are broken to begin with. Instead, scripts should use tput
that will consult the terminfo database for the current terminal and emit the relevant sequences.
Also, \e[F
is not featured in xterm
’s terminfo, while \e[A
is (as capability cuu1
).
The fact that cool-retro-term
sets the TERM
variable to xterm
is only tangentially related to the point I’m driving here.
In xterm you can use \e[F
.
You’re missing the point. Yes, xterm implements \e[F
and documents it in its own manual. No, you cannot use it portably in scripts, because it is not exposed in the terminfo database.
Well yeah because some choose not to, it's not something to debate really.
Most of the terminals i've tested support it, even most debloated of all st
or even freaking Windows :rofl:
So i'd absolutely love CRT to support it as well and become one of the serious and more compatible ones.
Instead of:
one has to do
to move the cursor to the beginning of the previous line.
In most terminals that's not the case, some interactive scripts may break.