Moving cursor to the beginning of previous line #660
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
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 inxterm
’s terminfo, while\e[A
is (as capabilitycuu1
).The fact that
cool-retro-term
sets theTERM
variable toxterm
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 🤣So i'd absolutely love CRT to support it as well and become one of the serious and more compatible ones.