On Mon, Jun 09, 2014 at 09:06:08AM +0200, Christoph Lohmann wrote:
> Greetings.
>
> On Mon, 09 Jun 2014 09:06:08 +0200 Colona wrote:
> > Add a new configuration variable, xcursorhide, to hide the X cursor when
> > typing
> > in the terminal. The cursor is displayed ag
Event *ev) {
Status status;
Shortcut *bp;
+ if(xcursorhide && xw.cursorstate) {
+ XDefineCursor(xw.dpy, xw.win, xw.bcursor);
+ xsetpointermotion(1);
+ xw.cursorstate = false;
+ }
+
if(IS_SET(MODE_KBDLOCK))
return;
--
2.0.0
--
Ivan "Colona" Delalande
epeated.
Yeah, you’re right, yours is definitely better, I’m totally fine with
it!
--
Ivan "Colona" Delalande
right, I gave it a try and actually refactored the whole case
SNAP_WORD, cf. the new patch "Refactor selsnap SNAP_WORD.". It replaces
the patch proposed in this thread.
--
Ivan "Colona" Delalande
.line[newy][newx];
+ if (!(gp->mode & ATTR_WDUMMY) && strchr(worddelimiters,
gp->c[0]))
break;
- }
- *x += direction;
+ *x = newx;
+ *y =
+= 1;
*x = 0;
} else {
--
2.0.0
--
Ivan "Colona" Delalande
Here is the fixed version, sorry!
--
Ivan "Colona" Delalande
>From 8ebf48cbe5d52822655bddca90289f5552d056d3 Mon Sep 17 00:00:00 2001
From: Colona
Date: Tue, 3 Jun 2014 21:47:55 -0700
Subject: [PATCH] Fix rectangular selection.
selsort computes the wrong normalized coordinates when
(sel.ob.x, sel.oe.x);
} else {
--
2.0.0
--
Ivan "Colona" Delalande
();
+ selnormalize();
/*
* Draw selection, unless it's regular and we don't want to
@@ -1449,7 +1455,7 @@ selscroll(int orig, int n) {
sel.oe.x = term.col;
}
}
- selsort();
+ selnormalize();
}
}
--
2.0.0
--
Ivan "Colona" Delalande
ust before
the call to draw() since it seems to be called only to redraw the whole
screen. And we still keep the "dirty" optimisation for the call to
draw() from run().
--
Ivan "Colona" Delalande
/* TODO: NEL */
case 0x88: /* TODO: HTS */
@@ -2396,6 +2397,7 @@ tcontrolcode(uchar ascii) {
case 0x9f: /* TODO: APC */
break;
}
+ /* only CAN, SUB, \a and C1 chars interrupt a sequence */
term.esc &= ~(ESC_STR_END|ESC_STR);
return;
}
--
1.9.2
--
Ivan "Colona" Delalande
);
+ }
break;
case 6: /* DECOM -- Origin */
MODBIT(term.c.state, set, CURSOR_ORIGIN);
--
1.9.2
--
Ivan "Colona" Delalande
IND */
> + case 0x85: /* TODO: NEL */
> + case 0x88: /* TODO: HTS */
> + case 0x8d: /* TODO: RI */
> + case 0x8e: /* TODO: SS2 */
> + case 0x8f: /* TODO: SS3 */
> + case 0x90: /* TODO: DCS */
> + case 0x98: /* TODO: SOS */
> + case 0x9a: /* TODO: DECID */
> + case 0x9b: /* TODO: CSI */
> + case 0x9c: /* TODO: ST */
> + case 0x9d: /* TODO: OSC */
> + case 0x9e: /* TODO: PM */
> + case 0x9f: /* TODO: APC */
> + break;
> + default:
> + return 0;
> + }
> + term.esc &= ~(ESC_STR_END|ESC_STR);
Shouldn’t these flags be cleared only on SUB, CAN, ST, C1s and \a ?
--
Ivan "Colona" Delalande
know if I am wrong.
Yeah, you’re right, I misunderstood the manual on that part.
--
Ivan "Colona" Delalande
} else if(strescseq.len + len < sizeof(strescseq.buf) - 1) {
memmove(&strescseq.buf[strescseq.len], c, len);
strescseq.len += len;
--
1.9.2
--
Ivan "Colona" Delalande
(ESC_START|ESC_STR);
term.esc |= ESC_STR_END;
} else if(strescseq.len + len < sizeof(strescseq.buf) - 1) {
memmove(&strescseq.buf[strescseq.len], c, len);
--
1.9.2
--
Ivan "Colona" Delalande
1.9.2
--
Ivan "Colona" Delalande
17 matches
Mail list logo