[dev] [st] [PATCH] On terminal resize, clear the alt screen with its own cursor.

2014-04-24 Thread Colona
1.9.2 -- Ivan "Colona" Delalande

[dev] [st] [PATCH] Also clears ESC_START on interrupt characters during sequences.

2014-05-07 Thread Colona
(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

[dev] [st] [PATCH] Set ESC_STR_END on a '\' character in a DCS.

2014-05-07 Thread Colona
} 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

Re: [dev] [st] [PATCH] Set ESC_STR_END on a '\' character in a DCS.

2014-05-07 Thread Colona
know if I am wrong. Yeah, you’re right, I misunderstood the manual on that part. -- Ivan "Colona" Delalande

Re: [dev] [st][PATCH v3] Cancel DCS with SUB, CAN, ESC or any CC1 code

2014-05-07 Thread Colona
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

[dev] [st] [PATCH] Clear the full screen on reverse terminal mode change.

2014-05-08 Thread Colona
); + } break; case 6: /* DECOM -- Origin */ MODBIT(term.c.state, set, CURSOR_ORIGIN); -- 1.9.2 -- Ivan "Colona" Delalande

[dev] [st] [PATCH] End a sequence only on CAN, SUB, \a and C1s.

2014-05-09 Thread Colona
/* 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

Re: [dev] [st] [PATCH] Clear the full screen on reverse terminal mode change.

2014-05-09 Thread Colona
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

[dev] [st] [PATCH] Make selection consistent over line breaks.

2014-06-02 Thread Colona
(); + 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

[dev] [st] [PATCH] Fix rectangular selection.

2014-06-02 Thread Colona
(sel.ob.x, sel.oe.x); } else { -- 2.0.0 -- Ivan "Colona" Delalande

Re: [dev] [st] [PATCH] Fix rectangular selection.

2014-06-03 Thread Colona
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

[dev] [st] [PATCH] Use worddelimiters for word selection over wrapped lines.

2014-06-04 Thread Colona
+= 1; *x = 0; } else { -- 2.0.0 -- Ivan "Colona" Delalande

[dev] [st] [PATCH] Refactor selsnap SNAP_WORD.

2014-06-04 Thread Colona
.line[newy][newx]; + if (!(gp->mode & ATTR_WDUMMY) && strchr(worddelimiters, gp->c[0])) break; - } - *x += direction; + *x = newx; + *y =

Re: [dev] [st] [PATCH] Use worddelimiters for word selection over wrapped lines.

2014-06-04 Thread Colona
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

Re: [dev] [st] [PATCH] Refactor selsnap SNAP_WORD.

2014-06-05 Thread Colona
epeated. Yeah, you’re right, yours is definitely better, I’m totally fine with it! -- Ivan "Colona" Delalande

[dev] [st] [PATCH] Hide X cursor when typing.

2014-06-08 Thread Colona
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

Re: [dev] [st] [PATCH] Hide X cursor when typing.

2014-06-09 Thread Colona
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