Boris Faure
6d4219137f
try to handle OOM on "termpty_save"
2014-09-14 14:11:14 +02:00
Carsten Haitzler
15b55d5eb7
Revert "do not crash when the scrollback mempool is OOM"
...
This reverts commit 815a357ad9
.
this patch breaks paging and backscroll completely. just try less or
more - eg
man ls
then resize the window. :)
2014-09-10 16:57:32 +09:00
Boris Faure
815a357ad9
do not crash when the scrollback mempool is OOM
2014-09-08 21:28:26 +02:00
Boris Faure
527bd7358e
scrollback_save: cleanup
2014-09-08 21:28:26 +02:00
godfath3r
54280b97f6
cleanup. Remove lines with values stored to variables never used
...
Summary:
as found with clang static analysis tool.
Reviewers: billiob, raster
Differential Revision: https://phab.enlightenment.org/D1207
2014-07-21 20:42:57 +02:00
Boris Faure
514f630cf3
fix text scrolling
2014-06-09 14:03:25 +02:00
Boris Faure
e51c2168e9
fix segfault. Closes T1286
2014-06-08 15:52:34 +02:00
Boris Faure
73930a6712
miniview: have only one buffer
2014-05-13 22:23:34 +02:00
Boris Faure
c3c8310218
Fix bracketed paste mode. Closes T1233. Patch by Egmont
2014-05-07 20:41:14 +02:00
Boris Faure
02856cbdec
terminology supports fraktur!!
2014-04-06 14:42:38 +02:00
Boris Faure
c27d887c1c
save wrapnext when saving cursor. Closes T1080
2014-03-15 18:35:59 +01:00
Boris Faure
2705680ea4
reset now resets mouse. Ref T725
2014-03-05 22:43:31 +01:00
Boris Faure
ac4117ce8a
add bracketed paste (by egmont). Closes T670
2014-01-06 21:51:23 +01:00
Aleksandar Popadić
c3f40b8cd8
Set the autowrap switch at the end of the line not before
...
Summary:
All the rest of the code expects the autowrap switch to be set at the
end of the line. Now in the case of double width characters the autowrap switch
is set before the line ending.
Reviewers: billiob
Differential Revision: https://phab.enlightenment.org/D433
2014-01-06 21:45:28 +01:00
Aleksandar Popadić
a3e67d8567
Fix a boundary case for wrap off
...
Test Plan: vttest, 2 -> the last "*" is missing
Reviewers: billiob
Differential Revision: https://phab.enlightenment.org/D411
2013-12-25 12:03:21 +01:00
Aleksandar Popadić
d0c6c1d457
Rewrite reflow on resize
...
Summary:
simplify code (treat every resize as a single case) and fill the lines
from the bottom up
Reviewers: billiob
Differential Revision: https://phab.enlightenment.org/D355
2013-12-01 19:47:12 +01:00
Boris Faure
509a5d1a7b
fix scrolling with selection on irssi in tmux. Closes T404
2013-11-18 22:30:26 +01:00
Boris Faure
f8edf059d4
fix scrolling bug. Closes T106
...
Was fixed with help from great bug report by thomasg.
scroll_rev was ok
2013-11-17 17:28:32 +01:00
Boris Faure
2fcdd866ad
remove debug =]
2013-11-14 23:10:08 +01:00
Boris Faure
8c7dab9fdf
remove selection when content selected changes
2013-11-11 18:08:02 +01:00
Boris Faure
bc15fc6ff6
keep selection when scrolling
2013-11-10 22:13:19 +01:00
Cedric Bail
964e1f39a9
terminology: factorise some code and help the compiler figure out which branch is the most likely one.
2013-10-28 18:55:53 +09:00
Boris Faure
604a9abd85
compat: fix scrolling not clearing some text
...
Test case was provided by weechat.
2013-06-09 12:03:52 +02:00
Boris Faure
f5cad4ff7f
compat: only clear cells when scrolling to add text
...
and to delete lines, but not when just moving the cursor
2013-06-09 12:03:51 +02:00
Carsten Haitzler
5549fc05a0
add compressed backscroll to terminology...
...
we get about 0.35-0.4 or so ratio of compression. it also now
defragments memory used for backscroll and holed it in mmaped blocks
so when the blocks go all memory goes used for backscroll.
2013-05-05 23:10:44 +09:00
Carsten Haitzler
3fc3ce4c79
add whitepsace debug mode and termsave abstraction infra.
2013-05-04 11:45:45 +09:00
Boris Faure
b6d2b1b4ad
revert a bunch of commits that weren't ready for prime time
...
664c5a23: Revert "compat: csi parameters are always decimal"
3694c88c: Revert "compat: handle cursor-controls chars in ESC sequences"
16e143f9: Revert "compat: add margin top support on Origin mode"
4daccf1f: Revert "compat: add ugly testing code to change between 80/132 cols"
d5be8a64: Revert "add termio_win_get();"
cff21ea5: Revert "compat: only clear cells when scrolling to add text"
13a11e5a: Revert "compat: add some csi dec private modes TODOs"
65f07f77: Revert "handle DCS status string requests"
2013-05-02 10:33:39 +02:00
Boris Faure
cff21ea5b8
compat: only clear cells when scrolling to add text
...
and to delete lines, but not when just moving the cursor
2013-04-21 21:51:07 +02:00
Carsten Haitzler
6ad334c864
zero out fmt bits for dbl width chars for spare cell.
2013-04-15 23:54:47 +09:00
Boris Faure
b749acfc3c
reflow: use termpty_cell_copy() instead of memcpy()
...
Also get rid of _termpty_text_copy().
2013-04-12 22:13:17 +02:00
Boris Faure
0556318761
reflow: change _text_save_top() termpty_text_save_top()
...
also change prototype
2013-04-12 22:13:16 +02:00
Boris Faure
852400f039
reflow: correctly set line length when pushing to backscroll
2013-04-12 22:13:16 +02:00
Boris Faure
8e9443a58c
fix clearing screen till the end
2013-04-08 18:26:58 +02:00
Boris Faure
193d308093
clear text with codepoint 0 instead of space
2013-03-17 21:39:14 +01:00
Boris Faure
081f27552b
fix clearing lines with circular buffer.
...
Fixes #2263 .
SVN revision: 84004
2013-02-16 18:16:25 +00:00
Carsten Haitzler
19ee5d50b1
fix spinning - blinking curaor from cmdbox entry.... only create when
...
needed and delete when not. :)
SVN revision: 83613
2013-02-04 21:12:41 +00:00
Carsten Haitzler
0015767f4b
tidy yp tycat - handle edj and mp3/audio files - ahare extensions
...
handling and filtering, actually free tup termblocks when no longer
referenced without needing a gc, etc. ...
SVN revision: 83441
2013-01-29 15:54:47 +00:00
Boris Faure
f820185c7e
terminology: fix clear screen
...
SVN revision: 83309
2013-01-24 21:29:49 +00:00
Cedric BAIL
f32da4a10e
terminology: just push a stupid micro optimization to just be below urxvt.
...
SVN revision: 83120
2013-01-23 05:11:29 +00:00
Cedric BAIL
e36295ce3e
terminology: improve speed of text scrolling by using a circular buffer.
...
SVN revision: 83038
2013-01-21 14:02:32 +00:00
Cedric BAIL
548e12472e
terminology: revert previous commit at it is not ready yet for primetime.
...
SVN revision: 83013
2013-01-20 10:48:17 +00:00
Cedric BAIL
61576f1496
terminology: use a circular buffer for the screen.
...
SVN revision: 83012
2013-01-20 10:15:47 +00:00
Boris Faure
4b64f43863
terminology: fix potential segfault when writing after end of line
...
SVN revision: 78619
2012-10-29 19:02:40 +00:00
Boris Faure
7d01e6ad09
terminology: reset scroll state on "clear all"
...
SVN revision: 78070
2012-10-16 19:38:32 +00:00
Cedric BAIL
48f15f3850
terminology: revert r77987 as it break htop.
...
SVN revision: 78039
2012-10-16 07:56:27 +00:00
Boris Faure
b605dfa84b
terminology: reset scroll markers once done
...
SVN revision: 77987
2012-10-15 08:18:27 +00:00
Boris Faure
41c7edd9d9
terminology: revert 77549,77551 about fixing a vim issue.
...
Will investigate further.
SVN revision: 77616
2012-10-09 07:47:24 +00:00
Boris Faure
39d2fea874
terminology: add missing parentheses
...
SVN revision: 77551
2012-10-06 20:53:45 +00:00
Boris Faure
e097c4c8af
terminology: fix vim issue
...
SVN revision: 77549
2012-10-06 20:23:20 +00:00
Carsten Haitzler
197e0bbf46
splut up termpty a lot. still escape handling is the largest bit -
...
1200 lines or so, but not a lot that canbe done about that as its the
smallest really logical unit there.
SVN revision: 73798
2012-07-13 08:46:33 +00:00