Path: csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail From: Ingo Schwarze Newsgroups: gnu.groff.bug Subject: [bug #57510] not all TTY output controls simultaneously available (nroff needs -P) Date: Sat, 18 Jan 2020 07:34:22 -0500 (EST) Lines: 50 Approved: bug-groff@gnu.org Message-ID: References: <20191231-093235.sv93119.85541@savannah.gnu.org> <20200118-054007.sv108747.1063@savannah.gnu.org> <20200118-073954.sv108747.35727@savannah.gnu.org> <20200118-020628.sv93119.30271@savannah.gnu.org> <20200118-083846.sv108747.94393@savannah.gnu.org> <20200118-123422.sv97361.93366@savannah.gnu.org> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain;charset=UTF-8 X-Trace: usenet.stanford.edu 1579350866 4816 209.51.188.17 (18 Jan 2020 12:34:26 GMT) X-Complaints-To: action@cs.stanford.edu To: "G. Branden Robinson" , Dave , Ingo Schwarze , bug-groff@gnu.org Envelope-to: bug-groff@gnu.org X-PHP-Originating-Script: 1001:sendmail.php X-Savane-Server: savannah.gnu.org:443 [209.51.188.79] X-Savane-Project: groff X-Savane-Tracker: bugs X-Savane-Item-ID: 57510 User-Agent: Mozilla/5.0 (X11; OpenBSD amd64; rv:71.0) Gecko/20100101 Firefox/71.0 X-Apparently-From: 87.173.123.163 (Savane authenticated user schwarze) In-Reply-To: <20200118-083846.sv108747.94393@savannah.gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.79 X-BeenThere: bug-groff@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Bug reports for the GNU version of nroff, troff et al" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <20200118-123422.sv97361.93366@savannah.gnu.org> X-Mailman-Original-References: <20191231-093235.sv93119.85541@savannah.gnu.org> <20200118-054007.sv108747.1063@savannah.gnu.org> <20200118-073954.sv108747.35727@savannah.gnu.org> <20200118-020628.sv93119.30271@savannah.gnu.org> <20200118-083846.sv108747.94393@savannah.gnu.org> Xref: csiph.com gnu.groff.bug:1659 Update of bug #57510 (project groff): Status: Need Info => In Progress _______________________________________________________ Follow-up Comment #5: Regarding the patch: * I strongly oppose deprecating -c. As i repeatedly said before, i consider it superior to SGR output because it doesn't require running the pager in an insecure mode (depending on which pager mode the user picks, it may be marginally or substantially insecure). I recommend using -c and still think it should be the default. It is also the only output mode supported by mandoc(1), and it looks extremely unlikely that mandoc will ever support SGR. * I have no opinion about -h, it doesn't seem to matter much either way. * Adding the -P option to nroff(1) makes sense to me. * What's the point in adding a separate $Popts variable? Why not just add each -P argument to $opts using a line like: opts="$opts -P$1"? * I believe the changes to the handling of the -c and -h options are buggy. Either you have to leave them untouched (adding them to $opts) or you have to change the "opts=" to "Popts=" lest -c and -h suddenly clobber other options given earlier on the command line. Also, you don't want "-c -h" to copy the previous content of $Popts to $opts twice. * I believe the ellipsis in "[-Popt ...]" in the usage() is incorrect. It should just be "[-Popt]". You can only give one argument to -P. For example, "-P-d -o" wouldn't work. Instead, "-P-d -P-o" would be required. The man(1) option name space is indeed crowded: http://mandoc.bsd.lv/man/man.options.1.html Not sure it is wise to add more options of low usefulness and non-existent portability like the one you propose. Reusing options for a different purpose isn't a particularly bright idea. At least, a very long time should pass between deprecation and reuse. The point of deprecating stuff isn't to free up namespace for reuse. The point is to make the user interface smaller and simpler. _______________________________________________________ Reply to this item at: _______________________________________________ Message sent via Savannah https://savannah.gnu.org/