projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix line cursor colours (fallout from `256-colours'), on both Windows and Unix.
[u/mdw/putty]
/
unix
/
pterm.c
diff --git
a/unix/pterm.c
b/unix/pterm.c
index
526e494
..
54ab31d
100644
(file)
--- a/
unix/pterm.c
+++ b/
unix/pterm.c
@@
-2163,7
+2163,7
@@
void do_cursor(Context ctx, int x, int y, wchar_t *text, int len,
length = inst->font_height;
}
length = inst->font_height;
}
- gdk_gc_set_foreground(gc, &inst->cols[
NCFGCOLOURS-
1]);
+ gdk_gc_set_foreground(gc, &inst->cols[
26
1]);
if (passive) {
for (i = 0; i < length; i++) {
if (i % 2 == 0) {
if (passive) {
for (i = 0; i < length; i++) {
if (i % 2 == 0) {
@@
-2551,17
+2551,6
@@
int do_cmdline(int argc, char **argv, int do_everything,
return err;
}
return err;
}
-static void block_signal(int sig, int block_it) {
- sigset_t ss;
-
- sigemptyset(&ss);
- sigaddset(&ss, sig);
- if(sigprocmask(block_it ? SIG_BLOCK : SIG_UNBLOCK, &ss, 0) < 0) {
- perror("sigprocmask");
- exit(1);
- }
-}
-
/*
* This function retrieves the character set encoding of a font. It
* returns the character set without the X11 hack (in case the user
/*
* This function retrieves the character set encoding of a font. It
* returns the character set without the X11 hack (in case the user