From owner-freebsd-bugs Mon Nov 5 2:30:13 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 6C58F37B419 for ; Mon, 5 Nov 2001 02:30:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id fA5AU1x55647; Mon, 5 Nov 2001 02:30:01 -0800 (PST) (envelope-from gnats) Received: from ws.urai.ru (ws.urai.ru [212.76.171.29]) by hub.freebsd.org (Postfix) with ESMTP id 51D0937B417 for ; Mon, 5 Nov 2001 02:22:52 -0800 (PST) Received: (from root@localhost) by ws.urai.ru (8.11.6/8.11.5) id fA5AMn379724 for FreeBSD-gnats-submit@freebsd.org.AVP; Mon, 5 Nov 2001 15:22:49 +0500 (YEKT) (envelope-from root) Received: (from root@localhost) by ws.urai.ru (8.11.6/8.11.5) id fA5AMnd79717; Mon, 5 Nov 2001 15:22:49 +0500 (YEKT) (envelope-from root) Message-Id: <200111051022.fA5AMnd79717@ws.urai.ru> Date: Mon, 5 Nov 2001 15:22:49 +0500 (YEKT) From: Belousov Oleg Reply-To: Belousov Oleg To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: gnu/31772: New option in dialog(1) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 31772 >Category: gnu >Synopsis: New option in dialog(1) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Nov 05 02:30:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Belousov Oleg >Release: FreeBSD 4.4-STABLE i386 >Organization: >Environment: System: FreeBSD ws 4.4-STABLE FreeBSD 4.4-STABLE #2: Fri Oct 5 09:01:24 YEKST 2001 root@ws:/usr/src/sys/compile/WS i386 >Description: I'm add new option --file for dialog(1) >How-To-Repeat: >Fix: --- dialog.c.orig Thu May 10 10:23:01 2001 +++ dialog.c Mon Nov 5 15:09:28 2001 @@ -384,6 +384,26 @@ end_dialog(); return retval; } + else if (!strcmp(argv[offset+1], "--file")) { + unsigned char *tresult; + if (argc-offset != 4) { + Usage(argv[0]); + exit(-1); + } + init_dialog(); + tresult = dialog_fselect(argv[offset+2], argv[offset+3]); + dialog_update(); + if (tresult) { + fputs(tresult, stderr); + retval = 0; + } else { + retval = 1; + } + if (clear_screen) /* clear screen before exit */ + dialog_clear(); + end_dialog(); + return retval; + } Usage(argv[0]); exit(-1); @@ -421,6 +441,7 @@ \n --checklist ...\ \n --radiolist ...\ \n --ftree \ -\n --tree ...\n", VERSION, name, name, name); +\n --tree ...\ +\n --file \n", VERSION, name, name, name); } /* End of Usage() */ >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message