[PATCH 8/8] ul.c: warn user when command chooses term type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Happens usually when user specifies garbage as -t argument.

Signed-off-by: Sami Kerola <kerolasa@xxxxxx>
---
 text-utils/ul.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/text-utils/ul.c b/text-utils/ul.c
index 04da64e..7b93abb 100644
--- a/text-utils/ul.c
+++ b/text-utils/ul.c
@@ -209,7 +209,8 @@ int main(int argc, char **argv)
 		/* fall through to ... */
 
 	case 0:
-		/* No such terminal type - assume dumb */
+		warnx(_("terminal `%s' is not known, defaulting to `dumb'"),
+			termtype);
 		setupterm("dumb", STDOUT_FILENO, (int *)0);
 		break;
 	}
-- 
1.7.5

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux