delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/08/02/10:28:26

From: "Mark E." <snowball3 AT bigfoot DOT com>
To: djgpp-workers AT delorie DOT com
Date: Thu, 2 Aug 2001 10:09:31 -0400
MIME-Version: 1.0
Subject: Re: djgpp: djgpp/src/libc/posix/termios/tmwrite.c
Message-ID: <3B6926DB.22912.206E49@localhost>
References: <200108012154 DOT RAA26948 AT delorie DOT com>
In-reply-to: <Pine.SUN.3.91.1010802095213.28510E-100000@is>
X-mailer: Pegasus Mail for Win32 (v3.12c)
Reply-To: djgpp-workers AT delorie DOT com

> 
> On Wed, 1 Aug 2001, cvs-snowball AT delorie DOT com wrote:
> 
> > !   else if (ch == '\b')
> > !   {
> > !     if (*col > 0)
> > !       --(*col);

> Should Backspace merely move the cursor, or should it also erase the
> character to the left of the cursor?  What happens if the user presses
> the Backspace key?

It's emulating the behavior of int 0x29 and int 0x10 ah=0x0e which moves the 
cursor back one without erasing a character. When the user presses a key, the 
expected happens because tmread.c writes "\b \b" using the int 0x29 service.

Yes this will need revisiting.

Mark

- Raw text -


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