[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemacs-commit] qemacs shell.c
From: |
Charlie Gordon |
Subject: |
[Qemacs-commit] qemacs shell.c |
Date: |
Tue, 25 Mar 2008 11:04:59 +0000 |
CVSROOT: /cvsroot/qemacs
Module name: qemacs
Changes by: Charlie Gordon <chqrlie> 08/03/25 11:04:59
Modified files:
. : shell.c
Log message:
fixed color tracking in tty_csi_m
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/shell.c?cvsroot=qemacs&r1=1.42&r2=1.43
Patches:
Index: shell.c
===================================================================
RCS file: /cvsroot/qemacs/qemacs/shell.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -b -r1.42 -r1.43
--- shell.c 9 Jan 2008 13:41:41 -0000 1.42
+++ shell.c 25 Mar 2008 11:04:59 -0000 1.43
@@ -449,12 +449,12 @@
/* 0:black 1:red 2:green 3:yellow 4:blue 5:magenta 6:cyan 7:white */
if (c >= 30 && c <= 37) {
/* set foreground color */
- s->color &= ~(TTY_BOLD | TTY_BG_COLOR(7));
+ s->color &= ~TTY_FG_COLOR(7);
s->color |= TTY_FG_COLOR(c - 30);
} else
if (c >= 40 && c <= 47) {
/* set background color */
- s->color &= ~(TTY_BOLD | TTY_FG_COLOR(7));
+ s->color &= ~TTY_BG_COLOR(7);
s->color |= TTY_BG_COLOR(c - 40);
}
break;
@@ -887,7 +887,7 @@
int size)
{
ShellState *s = opaque;
- unsigned char buf[32];
+ unsigned char buf[256];
int len;
switch (op) {
@@ -910,6 +910,7 @@
memset(buf, s->color, len);
eb_insert(s->b_color, offset, buf, len);
size -= len;
+ offset += len;
}
break;
case LOGOP_DELETE:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemacs-commit] qemacs shell.c,
Charlie Gordon <=