NetBSD Problem Report #17533
Received: (qmail 29465 invoked by uid 605); 9 Jul 2002 12:57:30 -0000
Message-Id: <200207092302.g69N2Df14924@elysium>
Date: Wed, 10 Jul 2002 09:02:13 +1000 (EST)
From: rtr@wasabisystems.com
Sender: gnats-bugs-owner@netbsd.org
Reply-To: rtr@wasabisystems.com
To: gnats-bugs@gnats.netbsd.org
Subject: Typing in fields leaves cursor in wrong position during entry.
X-Send-Pr-Version: 3.95
>Number: 17533
>Category: lib
>Synopsis: Typing in fields leaves cursor in wrong position during entry.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: lib-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jul 09 12:58:00 +0000 2002
>Closed-Date: Sat Aug 03 14:37:49 +0000 2002
>Last-Modified: Sun Jan 05 21:18:12 +0000 2003
>Originator: Tyler Retzlaff
>Release: NetBSD 1.6B
>Organization:
Wasabi Systems
>Environment:
System: NetBSD elysium 1.6B NetBSD 1.6B (elysium) #0: Wed Jul 3 00:39:26 EST 2002 rtr@elysium:/usr/src/sys/arch/i386/compile/elysium i386
Architecture: i386
Machine: i386
>Description:
When entering text into a form field after pressing the key the
cursor is left at the end of the field instead of being positioned
after the last character typed.
e.g.
field: [ ]
^ cursor position
field: [A ] <-- an 'A' is entered
^ cursor position after entering A
Typing another character will cause the next character to appear in
the correct location, though the cursor always ends up located after
the end of the field.
While I didn't even notice this on a vt100 term, it became shockingly
annoying when running it under pc3.
>How-To-Repeat:
Just create a form with a field and enter a character.
>Fix:
I'm not sure of the exact location in the source but I suspect
you only need call mvcur() to after refreshing the fields.
>Release-Note:
>Audit-Trail:
From: Tyler Retzlaff <rtr@wasabisystems.com>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: lib/17533
Date: Thu, 11 Jul 2002 23:55:18 +1000
I've discovered that this occurs under special circumstances. Though it's
still a bug. It happens only when another field in the form is altered as a
side effect of the current field being altered.
e.g. I have two fields one is current (as reported by current_field) and is
receiving input from the user. The second field is updated while the user
is entering data into the field.
For better understanding consider a scenario where there are two fields and one
displays the current field multiplied by 3.
field a: [ ] <-- currently focused
^ <-- cursor
field b: [ ] <-- no focus, updates based on field a.
field a: [3 ] <-- 3 is entered resulting in set_field_buffer for field b
being called to display the product 3 * 3.
field b: [9 ]
^ <-- cusor position after form win is refreshed.
Even though the focus was never transferred to field b the cursor sits at the
end of it. This is the poor behavior.
--
Tyler Retzlaff <rtr@wasabisystems.com> http://www.wasabisystems.com
From: Tyler Retzlaff <rtr@wasabisystems.com>
To: gnats-bugs@netbsd.org
Cc: perry@wasabisystems.com
Subject: Re: lib/17533
Date: Sun, 14 Jul 2002 18:20:31 +1000
oops, thought I had made a note of this this bug occurs in libform.
--
Tyler Retzlaff <rtr@wasabisystems.com> http://www.wasabisystems.com
State-Changed-From-To: open->feedback
State-Changed-By: blymn
State-Changed-When: Tue Jul 30 18:33:27 PDT 2002
State-Changed-Why:
committed fix to tree. will request rtr to to test.
State-Changed-From-To: feedback->closed
State-Changed-By: blymn
State-Changed-When: Sat Aug 3 07:37:04 PDT 2002
State-Changed-Why:
reported fixed.
From: Tyler Retzlaff <rtr@wasabisystems.com>(by way of Erik E. Fair)
To: NetBSD GNATS Problem Report Tracking System <gnats-bugs@gnats.netbsd.org>
Cc:
Subject: Re: lib/17533
Date: Sun, 5 Jan 2003 13:15:26 -0800
With the latest changes to libform this problem has been solved.
Great work.
Thanks
--
Tyler Retzlaff <rtr@wasabisystems.com> http://www.wasabisystems.com
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.