Mail Archives: djgpp-workers/2001/08/01/13:54:02
> You mean, for the feature of readline where a long line is scrolled left
> or right to bring the cursor position into the view without wrapping the
> line?
Yes.
> However, I wonder: do curses and/or
> termcap support such operations on Unix systems? If so, what primitives
> do you need to implement for that?
The termcap names are ic, IC, dc, and DC.
"ic" defines how to make room for one character. "IC" defines how to make
room for n characters. "dc" defines how to delete one character. "DC" defines
how to delete n characters. The cursor remains unchanged after all four. And
the ECMA/ANSI commands to do these things are @ for insert and P for delete
(so \e[@ would make room for one character, \e[3P would delete three
characters).
I assume terminfo/curses has a similiar way of defining these strings.
MArk
- Raw text -