NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: lib/57860: Curses getnstr() family handling of kill char (^U) not correct.
The following reply was made to PR lib/57860; it has been noted by GNATS.
From: RVP <rvp%SDF.ORG@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: lib/57860: Curses getnstr() family handling of kill char (^U)
not correct.
Date: Wed, 17 Jan 2024 07:07:36 +0000 (UTC)
On Mon, 15 Jan 2024, achowe%snert.com@localhost wrote:
>> Description:
> Entering text into a field with Curses getnstr() family of functions does not correct handle the behaviour of ^U kill char.
>
Please try this. It should tide you over until this gets fixed properly (the
*getnstr() don't look right with keypad(TRUE), for example).
```
diff -urN a/lib/libcurses/getstr.c b/lib/libcurses/getstr.c
--- a/lib/libcurses/getstr.c 2021-09-06 07:03:49.000000000 +0000
+++ b/lib/libcurses/getstr.c 2024-01-17 06:37:43.889003732 +0000
@@ -222,7 +222,7 @@
mvwaddch(win, win->cury, win->curx - 1,
' ');
wmove(win, win->cury, win->curx - 1);
- str--;
+ xpos--; str--;
if (n != -1)
/* We're counting chars */
remain++;
```
-RVP
Home |
Main Index |
Thread Index |
Old Index