From: "Mark E." To: djgpp-workers AT delorie DOT com Date: Wed, 1 Aug 2001 13:53:56 -0400 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: djgpp: djgpp/src/libc/posix/termios/tmwrite.c Message-ID: <3B6809F4.7645.27DB47@localhost> References: <3B67E91B DOT 32697 DOT 10BAE5 AT localhost> In-reply-to: X-mailer: Pegasus Mail for Win32 (v3.12c) Reply-To: djgpp-workers AT delorie DOT com > 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