[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#195545: whiptail: Wrong cursor position in listboxes

Package: whiptail
Version: 0.51.4-6
Severity: important
Tag: patch

The listbox.c code in libnewt has a little bug which results in the
cursor being placed one line below the actually highlighted item in
a listbox when no border is drawn.  This is problematic for serial consoles
which do not show the highlighted text, and for blind users using screen
readers, since screen readers only use the cursor to track what
is currently selected/active.

--- listbox.c.orig	2002-08-15 22:13:40.000000000 +0200
+++ listbox.c	2003-05-31 14:16:22.000000000 +0200
@@ -530,7 +530,8 @@
 	SLsmg_write_nstring(item->text, li->curWidth);
-    newtGotorc(co->top + (li->currItem - li->startShowItem) + 1, co->left + 1);
+    newtGotorc(co->top + (li->currItem - li->startShowItem) + li->bdyAdjust,
+               co->left + li->bdxAdjust);
 static struct eventResult listboxEvent(newtComponent co, struct event ev) {

-- System Information
Debian Release: testing/unstable
Kernel Version: Linux lexx 2.4.19 #1 Thu Aug 29 15:11:07 CEST 2002 i686 GNU/Linux

Versions of the packages whiptail depends on:
ii  libc6          2.3.1-17       GNU C Library: Shared libraries and Timezone
ii  libnewt0.51    0.51.4-6       Not Erik's Windowing Toolkit - text mode win
ii  libpopt0       1.7-2          lib for parsing cmdline parameters
ii  slang1a-utf8   1.4.5-2        The S-Lang programming library with utf8 sup

  Mario | Debian Developer <URL:http://debian.org/>
        | Get my public key via finger mlang@db.debian.org
        | 1024D/7FC1A0854909BCCDBE6C102DDFFC022A6B113E44

Reply to: