Mon Mar 27 12:48:09 PST 2000 Michael Jennings <mej@eterm.org>

Some quick fixes from Cale Gibbard <gibbard@bfree.on.ca> for the color
	changing stuff.


SVN revision: 2352
This commit is contained in:
Michael Jennings 2000-03-27 20:49:34 +00:00
parent 6d3c3ff6dc
commit 46c04cd733
2 changed files with 8 additions and 1 deletions

View File

@ -3369,3 +3369,9 @@ Fri Mar 24 18:16:02 PST 2000 Michael Jennings <mej@eterm.org>
defaults. These are compatible with the Linux console.
-------------------------------------------------------------------------------
Mon Mar 27 12:48:09 PST 2000 Michael Jennings <mej@eterm.org>
Some quick fixes from Cale Gibbard <gibbard@bfree.on.ca> for the color
changing stuff.
-------------------------------------------------------------------------------

View File

@ -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();
}