View | Details | Raw Unified | Return to bug 220300
Collapse All | Expand All

(-)man.1 (+2 lines)
Lines 328-333 Link Here
328
option.
328
option.
329
.It Ev MANWIDTH
329
.It Ev MANWIDTH
330
If set to a numeric value, used as the width manpages should be displayed.
330
If set to a numeric value, used as the width manpages should be displayed.
331
If set to a negative numeric value, and output is to a terminal,
332
the width is the whole width of the screen minus the specified value.
331
Otherwise, if set to a special value
333
Otherwise, if set to a special value
332
.Dq Li tty ,
334
.Dq Li tty ,
333
and output is to a terminal,
335
and output is to a terminal,
(-)man.sh (+9 lines)
Lines 637-642 Link Here
637
			use_width=$MANWIDTH
637
			use_width=$MANWIDTH
638
		fi
638
		fi
639
		;;
639
		;;
640
	-[0-9]*)
641
		if { sizes=$($STTY size 0>&3 2>/dev/null); } 3>&1; then
642
			set -- $sizes
643
			if [ $2 -gt 80 ]; then
644
				MANWIDTH="${MANWIDTH#-}"
645
				use_width=$(($2-$MANWIDTH))
646
			fi
647
		fi
648
		;;
640
	[Tt][Tt][Yy])
649
	[Tt][Tt][Yy])
641
		if { sizes=$($STTY size 0>&3 2>/dev/null); } 3>&1; then
650
		if { sizes=$($STTY size 0>&3 2>/dev/null); } 3>&1; then
642
			set -- $sizes
651
			set -- $sizes

Return to bug 220300