|
|
@ -673,6 +673,10 @@ bpress(XEvent *e) { |
|
|
|
sel.mode = 1; |
|
|
|
sel.mode = 1; |
|
|
|
sel.ex = sel.bx = x2col(e->xbutton.x); |
|
|
|
sel.ex = sel.bx = x2col(e->xbutton.x); |
|
|
|
sel.ey = sel.by = y2row(e->xbutton.y); |
|
|
|
sel.ey = sel.by = y2row(e->xbutton.y); |
|
|
|
|
|
|
|
} else if(e->xbutton.button == Button4) { |
|
|
|
|
|
|
|
ttywrite("\031", 1); |
|
|
|
|
|
|
|
} else if(e->xbutton.button == Button5) { |
|
|
|
|
|
|
|
ttywrite("\005", 1); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -1834,8 +1838,8 @@ tputc(char *c, int len) { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* STR sequences must be checked before of anything |
|
|
|
* STR sequences must be checked before anything else |
|
|
|
* because it can use some control codes as part of the sequence |
|
|
|
* because it can use some control codes as part of the sequence. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
if(term.esc & ESC_STR) { |
|
|
|
if(term.esc & ESC_STR) { |
|
|
|
switch(ascii) { |
|
|
|
switch(ascii) { |
|
|
@ -1855,6 +1859,7 @@ tputc(char *c, int len) { |
|
|
|
} |
|
|
|
} |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* Actions of control codes must be performed as soon they arrive |
|
|
|
* Actions of control codes must be performed as soon they arrive |
|
|
|
* because they can be embedded inside a control sequence, and |
|
|
|
* because they can be embedded inside a control sequence, and |
|
|
|