summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2020-11-17 15:16:00 -0800
committerKeith Packard <keithp@keithp.com>2020-11-17 15:16:00 -0800
commita30ed360fe56a556072e1fc551ffbe6797642227 (patch)
tree44372d0f6a3b491650d10a760b3d136f2a1658af
parent2c753b5c1622afa662a4f4334dd947667f37a803 (diff)
Make output with unknown width terminal the same as old code
Auto-detecting the terminal width and eliding icons that are too wide is a nice new feature, but we shouldn't change the behaviour when that width is not detectable (e.g., when output to a file). Change the default terminal width from 80 to 144 + 8 to get back to the previous output format. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--xprop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xprop.c b/xprop.c
index 15c296d..55feaab 100644
--- a/xprop.c
+++ b/xprop.c
@@ -66,7 +66,7 @@ from The Open Group.
/* isprint() in "C" locale */
#define c_isprint(c) ((c) >= 0x20 && (c) < 0x7f)
-static int term_width = 80;
+static int term_width = 144 + 8;
/*
*