From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 31 00:32:09 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C7EA5106566C for ; Fri, 31 Dec 2010 00:32:09 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id A02508FC1F for ; Fri, 31 Dec 2010 00:32:09 +0000 (UTC) Received: by iyb26 with SMTP id 26so10520484iyb.13 for ; Thu, 30 Dec 2010 16:32:09 -0800 (PST) Received: by 10.231.206.7 with SMTP id fs7mr709434ibb.82.1293753844939; Thu, 30 Dec 2010 16:04:04 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.160.65 with HTTP; Thu, 30 Dec 2010 16:03:44 -0800 (PST) From: Eitan Adler Date: Thu, 30 Dec 2010 19:03:44 -0500 Message-ID: To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=UTF-8 Subject: questions relating to ncurses and dialog(1) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Dec 2010 00:32:09 -0000 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