questions relating to ncurses and dialog(1)
Eitan Adler
lists at eitanadler.com
Fri Dec 31 00:32:09 UTC 2010
As some people know I've been working on a replacement of dialog(1) as
used in the ports system.
I've come to two bugs that I've been stuck on for a week.
1) When clicking the "View" button on the license window (using the
withlicense.sh script) I fork() and then exec less. Less opens fine -
but when I hit "q" it seems that any actions I took in less also took
place in the ncurses program. If I use rfork(RFPROC|RFCFDG) then it
never shows less on the screen. I suspect this is because in the
former case they share the same stdin and stdout and in the latter
case less doesn't get any std* streams.
Is there a way to avoid this problem?
2) The "help" screen just doesn't show up despite having text and a
border and not generating any errors (which are all checked)
The code could be found at http://isis.poly.edu/~eitan/files/d4p-v17.tgz
Please note that program is not meant to be run by the end user so
limited checking was done for insane arguments
--
Eitan Adler
More information about the freebsd-hackers
mailing list