From 1ae17ad22c1d111e35d75d4e93d609efd61b5329 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Mon, 19 May 2014 13:16:51 +0800 Subject: [PATCH] utils/pb-console: use a linux termcap entry for local consoles For local consoles, we always want a TERM=linux. Signed-off-by: Jeremy Kerr --- utils/pb-console | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/utils/pb-console b/utils/pb-console index 9da899f..1c2bf62 100644 --- a/utils/pb-console +++ b/utils/pb-console @@ -96,6 +96,13 @@ do fi done +# we force local terminals to use the linux termcap definition +case "$(tty)" in +/dev/tty[0-9]*) + export TERM=linux + ;; +esac + verbose_opt= sysinfo_bin=$(dirname $0)/pb-sysinfo if [ -x $sysinfo_bin ] && $sysinfo_bin --debug-enabled -- 2.39.2