Aleksandar Popadić
11db9a1117
Fix screen swap when using alternate buffer.
...
Summary:
The circular_offset should not be set to 0 because the first line from
screen2 is copied to the offset line in screen.
Test Plan:
Try "man echo", scroll down and exit. The screen is not restored
properly.
Reviewers: billiob
Reviewed By: billiob
Differential Revision: https://phab.enlightenment.org/D345
2013-11-22 22:17:02 +01:00
Boris Faure
df2b87308b
add termpty_screen_swap() to simplify code
2013-11-18 21:41:30 +01:00
Aleksandar Popadić
7447178071
Fix screen refresh with screen, ssh, vim, ...
...
Summary: This closes T143.
Reviewers: billiob
Reviewed By: billiob
Maniphest Tasks: T143
Differential Revision: https://phab.enlightenment.org/D340
2013-11-18 20:45:47 +01:00
Boris Faure
4d629c5575
do not try to reflow altbuf
2013-11-10 15:34:40 +01:00
Cedric Bail
433b18b211
terminology: let the compiler inline more agressively the common case for a 1% win.
2013-10-28 18:55:19 +09:00
Carsten Haitzler
8585c3e9c2
maybe speed up term scroll byt skipping compare work
...
since nothing useful is actually done unless either oldc or newc have
a media char - then try return/skip early. might speed up by 2-5%...
(i see 4.05 vs 4.15 or so cat times for a test case).
2013-10-25 23:37:10 +09:00
Boris Faure
f539eba7ca
screw terminfo: have a config to decide whether erase is del or backspace
...
One day I'll have to dig into the terminfo/termcap mess :(
Maybe get the O'Reilly book about it…
2013-09-26 21:19:18 +02:00
Boris Faure
ed36063690
set correct mode with fcntl
2013-09-26 21:19:08 +02:00
Boris Faure
ef543aa753
have a config to choose whether to set TERM to xterm-256color
2013-09-26 21:18:27 +02:00
Cedric Bail
40c3cedd6a
terminology: let's help the compiler and tell him about this hot spot.
2013-08-30 16:06:49 +09:00
Carsten Haitzler
e8addbac90
don t consider greantpt failure an error, but a warning.
2013-08-30 14:17:42 +09:00
Carsten Haitzler
6c2884bdcb
oops.. , not m
2013-08-30 12:15:07 +09:00
Carsten Haitzler
3a2a58473b
ad erro handling for pty alloc (never seen it fail!)
2013-08-30 12:14:18 +09:00
Boris Faure
30392f23a9
s/__UNUSED__/EINA_UNUSED/g
2013-08-27 15:36:50 +02:00
Boris Faure
9d000c7c1d
fix word selection on multiple lines. Closes T305
2013-08-26 20:44:46 +02:00
Boris Faure
8e576f3978
reflow: do not add a newline when consolidation backscroll
2013-05-23 23:04:33 +02:00
Boris Faure
e8499b46aa
fix reflow on horizonal expansion
2013-05-23 22:34:14 +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
Carsten Haitzler
854dd69c31
clean some formatting.
2013-05-03 19:53:41 +09:00
Boris Faure
7a92b145e5
fix issue when buffer cuts last unicode
2013-04-28 22:47:14 +02:00
Boris Faure
07f4b23b16
reflow: fix segv sometimes when vertically shrinking
2013-04-20 17:38:31 +02:00
Carsten Haitzler
f5b84edbfd
more work ok direct edje inline content. u can send messages toit now
...
on init... and get signals... and drag events... but cant get messages
yet.
2013-04-20 16:54:11 +09:00
Carsten Haitzler
bbdf50fd62
protect against segv. see comments.
2013-04-20 12:50:31 +09:00
Carsten Haitzler
ef00ad2010
1. make notes of crash in term resizing.
...
2. fix memset to use term cell filler that handles block refs.
2013-04-20 12:07:13 +09:00
Carsten Haitzler
3aa98cd6f6
allow for raw edje files to be inlined ANd to set tet, emit signals to
...
them etc.
2013-04-20 10:37:05 +09:00
Boris Faure
0c47c4ba4d
reflow: fix horizontal shrinking
2013-04-12 22:13:17 +02:00
Boris Faure
274e2b13b2
reflow: fix vertical shrinking
2013-04-12 22:13:17 +02:00
Boris Faure
ce65369d57
reflow: fix displaying history on vertical expansion
2013-04-12 22:13:17 +02: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
ea60fdf9a4
reflow: fix setting cursor position on vertical shrink
2013-04-12 22:13:17 +02:00
Boris Faure
66e8493154
reflow: skip last empty lines when vertically shrinking
2013-04-12 22:13:17 +02:00
Boris Faure
a7858ecc2e
reflow: display content from backlog when vertically expanding
2013-04-12 22:13:17 +02:00
Boris Faure
fc7dcbdad6
reflow: don't let resize to 1x1
...
this occurs on terminolog start. dunno why ftm but it annoys me
2013-04-12 22:13:17 +02:00
Boris Faure
57032d607e
reflow: do not shrink unused lines
2013-04-12 22:13:17 +02:00
Boris Faure
9c9a05e958
reflow: do not always reset circular_offset on resize
2013-04-12 22:13:16 +02:00
Boris Faure
df08549f84
reflow: horizontally shrink the screen buffer
2013-04-12 22:13:16 +02:00
Boris Faure
74aa62f13c
reflow: horizontally shrink backlog
2013-04-12 22:13:16 +02:00
Boris Faure
d90396a803
reflow: define OLD_SCREEN() on a higher level
2013-04-12 22:13:16 +02:00
Boris Faure
f810600875
reflow: move cursor line when horizontally expanding
2013-04-12 22:13:16 +02:00
Boris Faure
25928a31b4
reflow: shrink vertically in place if needed
2013-04-12 22:13:16 +02:00
Boris Faure
55d2d0e483
reflow: dummy vertical shrink
2013-04-12 22:13:16 +02:00
Boris Faure
b605913b1d
reflow: fix backscroll expansion when full
2013-04-12 22:13:16 +02:00
Boris Faure
18c8aff57c
reflow: add vertically expansion support
2013-04-12 22:13:16 +02:00
Boris Faure
591529c05f
reflow: WIP: vertical expansion
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
050892a04c
reflow: remove empty lines due to screen expansion
2013-04-12 22:13:16 +02:00
Boris Faure
04cfd43af4
reflow: rewrap correctly between backscroll and screen
...
Refs: #1184
2013-04-12 22:13:16 +02:00
Boris Faure
ee9e6af8c0
reflow: add backscroll expanding
...
Refs: #1184
2013-04-12 22:13:16 +02:00
Boris Faure
8208428e89
reflow: expand screen
...
Refs: #1184
2013-04-12 22:13:16 +02:00