delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/08/01/13:54:02

From: "Mark E." <snowball3 AT bigfoot DOT com>
To: djgpp-workers AT delorie DOT com
Date: Wed, 1 Aug 2001 13:53:56 -0400
MIME-Version: 1.0
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: <Pine.SUN.3.91.1010801190655.18547M-100000@is>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019