From 46c04cd733c01c4837bf119b6187b03860f44684 Mon Sep 17 00:00:00 2001 From: Michael Jennings Date: Mon, 27 Mar 2000 20:49:34 +0000 Subject: [PATCH] Mon Mar 27 12:48:09 PST 2000 Michael Jennings Some quick fixes from Cale Gibbard for the color changing stuff. SVN revision: 2352 --- ChangeLog | 6 ++++++ src/term.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c7d779f..b2988c1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3369,3 +3369,9 @@ Fri Mar 24 18:16:02 PST 2000 Michael Jennings defaults. These are compatible with the Linux console. ------------------------------------------------------------------------------- +Mon Mar 27 12:48:09 PST 2000 Michael Jennings + + Some quick fixes from Cale Gibbard for the color + changing stuff. + +------------------------------------------------------------------------------- diff --git a/src/term.c b/src/term.c index 31fa846..8f0400c 100644 --- a/src/term.c +++ b/src/term.c @@ -1171,8 +1171,9 @@ process_xterm_seq(void) } else if (arg == 'P') { unsigned char i, idx; - idx = ((ch < '9') ? (ch - '0') : (tolower(ch) - 'a' + 10)) + minColor; + idx = ((ch <= '9') ? (ch - '0') : (tolower(ch) - 'a' + 10)) + minColor; string[0] = '#'; + string[7] = 0; for (i = 1; i < 7; i++) { string[i] = cmd_getc(); }