bin/171514: [PATCH] [usr.bin/man] Make man(1) default to use full screen if using a tty

Bryan Drewery bryan at shatow.net
Mon Sep 10 01:00:09 UTC 2012


>Number:         171514
>Category:       bin
>Synopsis:       [PATCH] [usr.bin/man] Make man(1) default to use full screen if using a tty
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 10 01:00:08 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Bryan Drewery
>Release:        FreeBSD 8.3-RELEASE i386
>Organization:
>Environment:

	
>Description:
	r222635 added support for MANWIDTH=tty which makes man(1) use the full screen if ran in a TTY. Make this the default, if MANWIDTH is not already set and not set to null.
>How-To-Repeat:
	
>Fix:

	

--- patch-man-default-MANWIDTH-tty.txt begins here ---
# svn status
M       usr.bin/man/man.sh

Index: usr.bin/man/man.sh
===================================================================
--- usr.bin/man/man.sh	(revision 240291)
+++ usr.bin/man/man.sh	(working copy)
@@ -576,7 +576,7 @@
 	local sizes
 
 	unset use_width
-	case "$MANWIDTH" in
+	case "${MANWIDTH-tty}" in
 	[0-9]*)
 		if [ "$MANWIDTH" -gt 0 2>/dev/null ]; then
 			use_width=$MANWIDTH
--- patch-man-default-MANWIDTH-tty.txt ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list