Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65829 - search text not displayed in pinfo emerged with readline support
Summary: search text not displayed in pinfo emerged with readline support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Jeroen Roovers (RETIRED)
URL: https://alioth.debian.org/project/sho...
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2004-09-29 09:43 UTC by Jaroslav Sladek
Modified: 2006-06-23 05:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch that leaves curses before search term is entered. (pinfo-search.patch,372 bytes, patch)
2004-09-29 09:46 UTC, Jaroslav Sladek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Sladek 2004-09-29 09:43:05 UTC
When pinfo is emerged with USE=+readline set, after user invokes search (either with / or s key), prompt is displayed, but typed text is invisible, and bottom status line ends up being garbled. Little research reveals that pinfo uses readline function to read search string from user, which doesn't really play well with ncurses. Without readline in USE flags, it uses its own implementation of search, which works fine for me (except small troubles with backspace in Konsole).

All major distributions I was able to check (Fedora, Mandrake) seem to contain pinfo which is not linked against readline, so I'd suggest considering if it's not better to disregard +readline flag in this case, since readline functionality doesn't seem to be well tested. Another possibility is using little patch, which envelopes call to readline() with endwin and refresh, to temporary leave curses. This works, but looks somehow wierd.

Reproducible: Always
Steps to Reproduce:
1. USE=+readline emerge pinfo
2. pinfo
3. press s and try writing search term

Actual Results:  
Search term is not visible

Expected Results:  
Search term should normally display

Portage 2.0.50-r11 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r1,
2.6.8-gentoo-r3)
=================================================================
System uname: 2.6.8-gentoo-r3 i686 Intel(R) Celeron(TM) CPU                1100MHz
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium3 -mcpu=pentium3 -ftracer -fprefetch-loop-arrays
-fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -mcpu=pentium3 -ftracer -fprefetch-loop-arrays
-fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://gentoo.inode.at/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb bitmap-fonts crypt cups encode flac foomaticdb
gdbm gif gpm gtk gtk2 imlib java jpeg kde ldap libg++ libwwwmad mikmod mmx mmx2
motif mpeg ncurses nls nptl oggvorbis opengl oss pam pdflib perl pic png python
qt quicktime readline sdl slang spell sse ssl svga tcpd truetype vim-with-x x86
xml2 xmms xprint xv zlib"
Comment 1 Jaroslav Sladek 2004-09-29 09:46:37 UTC
Created attachment 40713 [details, diff]
Patch that leaves curses before search term is entered.

Patch against current pinfo-0.6.8 version of pinfo. It leaves curses before
calling readline and restores them back again after it. However, being dumped
on text screen doesn't seem to be user friendly very much.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-11-11 10:51:43 UTC
Re-assign.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2006-06-22 08:47:53 UTC
Foo!
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2006-06-23 05:49:59 UTC
Fixed in new app-text/pinfo-0.6.9 release. Thank you for reporting this!