Date: Thu, 30 Dec 2010 19:03:44 -0500 From: Eitan Adler <lists@eitanadler.com> To: freebsd-hackers@freebsd.org Subject: questions relating to ncurses and dialog(1) Message-ID: <AANLkTi=EqukSOUOP0hvFHmR6=5%2BcNgiba5tQdmy-V8F-@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=EqukSOUOP0hvFHmR6=5%2BcNgiba5tQdmy-V8F->