From 9f22a0a2a5191cf57184846281164f478df4b7ac Mon Sep 17 00:00:00 2001 From: Libin Dang Date: Sat, 8 Oct 2022 01:15:59 +0800 Subject: [PATCH] fix(cli): split tput call into separate calls Sync definition of __DOOMGEOM in bin/doomscript with corresponding variable of bin/doom. * bin/doomscript (__DOOMGEOM): split tput call into two separate calls Ref: beef0aef0211 --- bin/doomscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/doomscript b/bin/doomscript index 53912ab8b..cf0d0e13c 100755 --- a/bin/doomscript +++ b/bin/doomscript @@ -58,7 +58,7 @@ fi # the comments at the top of bin/doom for explanations. export __DOOMPID="${__DOOMPID:-$$}" export __DOOMSTEP="$((__DOOMSTEP+1))" -export __DOOMGEOM="${__DOOMGEOM:-$(tput cols lines 2>/dev/null)}" +export __DOOMGEOM="${__DOOMGEOM:-$(tput cols 2>/dev/null)x$(tput lines 2>/dev/null)}" export __DOOMGPIPE="${__DOOMGPIPE:-$__DOOMPIPE}" export __DOOMPIPE= [ -t 0 ] || __DOOMPIPE="${__DOOMPIPE}0"