Boris Faure
caed00cc1f
fix segfault due to using isdigit with non unsigned char value. Closes T1625
...
Also rename _termpty_handle_seq() to termpty_handle_seq() since it's not static.
2014-09-15 23:10:55 +02:00
Boris Faure
fd1e4ffd45
fix segfault when decoding buggy xterm sequence. cf T1625
2014-09-04 20:45:02 +02:00
Boris Faure
6c50375f26
Party time! be able to set foreground color
...
Reset is not yet implemented for that…
Idea is from http://www.reddit.com/r/linux/comments/2ds0he/xterm_party/
2014-08-17 22:20:40 +02:00
Boris Faure
5dfb63a14a
handle queries on some xterm escape codes
2014-08-17 17:44:19 +02:00
Boris Faure
61050bd7cc
clean up xterm escape codes handling
2014-08-17 17:32:57 +02:00
Boris Faure
9a16eb57a1
handle some DSR: the cursor position reports
2014-08-14 21:48:26 +02:00
Boris Faure
ae820f3897
extract csi_reset_mode
2014-08-11 22:03:56 +02:00
Boris Faure
8a3c15e08e
gettextify termcmd.c,termio.c,termpty.c,termptyesc.c
2014-07-26 11:37: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
e51c2168e9
fix segfault. Closes T1286
2014-06-08 15:52: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
Sebastian Dransfeld
cd189663bd
remove dead code
...
We make sure that arg >= 0 before this line, so check is redundant.
CID 1100658
2014-03-24 13:40:05 +01:00
Boris Faure
c27d887c1c
save wrapnext when saving cursor. Closes T1080
2014-03-15 18:35:59 +01:00
Boris Faure
87e06d7a87
add some doc about RM 34/36
2014-03-15 17:35:56 +01:00
Boris Faure
f47eb5e410
fix buffer overflows. Closes T1050
2014-03-05 22:37:38 +01:00
Boris Faure
735e5d1a3d
cleanup code
2014-03-05 21:42:33 +01:00
Boris Faure
2063e2f4f4
fix ^[22m: no bold/bright, no faint
2014-03-03 23:02:17 +01:00
Boris Faure
5067594760
improve TODO message
2014-03-01 16:07:16 +01:00
Boris Faure
b22a4f6ab1
handle soft reset (DECSTR)
2014-03-01 15:39:58 +01:00
Boris Faure
42e4fdfc59
improve debug for unhandled csi
2014-03-01 15:29:32 +01:00
Boris Faure
f6a08ac7d8
skip buffer when dcs parsing overflows. Closes T932
2014-02-11 22:18:12 +01:00
Boris Faure
878f456160
fix copy/paste error: CID 1163307
2014-01-23 03:44:07 +01:00
Boris Faure
ab9243b94f
oops
2014-01-22 23:19:11 +01:00
Boris Faure
4602641ac0
fix typo: CID 1100646
2014-01-22 22:53:48 +01:00
Boris Faure
defca7b58b
remove dead code: CID 1100658
2014-01-22 22:52:27 +01:00
Boris Faure
ac4117ce8a
add bracketed paste (by egmont). Closes T670
2014-01-06 21:51:23 +01:00
Aleksandar Popadić
ae9226f823
Give commit 5ab7a6f827
another go
...
"Do not let CUU and CUD scroll off screen."
Previously I missed how the default values are implemented.
Reviewers: billiob, cedric
Differential Revision: https://phab.enlightenment.org/D417
Signed-off-by: Cedric BAIL <cedric.bail@samsung.com>
2013-12-27 16:17:15 +09:00
Cedric BAIL
1cc793f564
Revert "Do not let CUU and CUD scroll off screen."
...
This reverts commit 5ab7a6f827
.
This patch did completely break emacs for me. I have no idea what the intent was, but
at least my application/OS is broken.
2013-12-26 11:36:51 +09:00
Aleksandar Popadić
1f62a447a3
DECCOLM - do not change terminal height
...
Summary: I'm taking xterm as a reference here.
Reviewers: billiob
Reviewed By: billiob
Differential Revision: https://phab.enlightenment.org/D410
2013-12-25 12:09:54 +01:00
Aleksandar Popadić
5ab7a6f827
Do not let CUU and CUD scroll off screen.
...
Summary:
ISO 6429 is a bit vague here but I don't think that the cursor should
be let go off screen.
Test Plan: terminology -g80x30, vttest, 1 -> test failed
Reviewers: billiob
Reviewed By: billiob
Differential Revision: https://phab.enlightenment.org/D409
2013-12-25 12:07:13 +01:00
Aleksandar Popadić
e170f85ce3
Do not switch buffer if buffer already switched.
...
Summary:
Mutt does this. It sets the alternate buffer, it disables it, it
disables it again and enables it back.
Test Plan:
Run mutt, quit mutt, run mutt, quit mutt. You should see the
residual background from mutt.
Reviewers: billiob
Differential Revision: https://phab.enlightenment.org/D371
2013-12-10 21:45:11 +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
81a7d98f2f
fix handling of DCH. Closes T537
...
As characters are deleted, the remaining characters between the cursor and
right margin move to the left. Character attributes move with the characters.
The terminal adds blank spaces with no visual character attributes at the right
margin. DCH has no effect outside the scrolling margins.
2013-11-23 19:31:49 +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
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
40f0dc6950
simplify code
2013-11-17 17:28:32 +01:00
Boris Faure
4bc3357a91
improve debug output
2013-11-17 17:28:32 +01:00
Boris Faure
7617f39f1a
small debug-related changes
2013-11-10 15:35:16 +01:00
Daniel Juyung Seo
f5df6ce99d
termptyesc: removed unnecessary null check for free.
...
This fixes coverity CID 1100643.
2013-11-08 08:13:37 +09:00
Daniel Juyung Seo
e0bd4fd6f7
termptyesc: fixed up wrong null check.
...
This solves coverity CID 1100642.
2013-11-08 08:08:39 +09:00
Boris Faure
02e42a747b
esc: export color_set to its own function
2013-09-21 18:54:57 +02:00
Boris Faure
97c2275e8c
improve debug logs
2013-09-15 15:32:11 +02:00
Boris Faure
a8206c8b03
add some comments, clean-up code
2013-08-31 17:12:32 +02:00
Boris Faure
30392f23a9
s/__UNUSED__/EINA_UNUSED/g
2013-08-27 15:36:50 +02:00
Chris Michael
cf2eb65f98
Fix warning: 'len' may be used uninitialized in this function
...
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2013-06-19 09:21:58 +01: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
1dccb22ffc
compat: add some debug
2013-06-09 12:03:52 +02:00
Boris Faure
7bad3a491f
compat: discard (ftm) key resources used by xterm
2013-06-09 12:03:52 +02:00