Commit Graph

75 Commits

Author SHA1 Message Date
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
Boris Faure 75f40ae3c2 compat: improve doc/parsing on DCS escape codes 2013-06-09 12:03:52 +02:00
Boris Faure 7f5f407d7d compat: fix len computation when handling DCS escape codes 2013-06-09 12:03:52 +02:00
Boris Faure 72bbb101f8 compat: csi parameters are always decimal
There can be some leading zeros.
2013-06-09 12:03:52 +02:00
Boris Faure 71d27572b3 compat: handle cursor-controls chars in ESC sequences 2013-06-09 12:03:52 +02:00
Boris Faure 0b6e44bbd6 compat: add margin top support on Origin mode 2013-06-09 12:03:52 +02:00
Boris Faure d5cc45a690 compat: add ugly testing code to change between 80/132 cols 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
Boris Faure c41fb7f0b1 compat: add some csi dec private modes TODOs 2013-06-09 12:03:51 +02:00
Boris Faure 861bcf04a9 handle DCS status string requests 2013-06-09 12:03:51 +02: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 fa1817bbd4 remove dbg 2013-04-28 21:23:46 +02:00
Boris Faure 664c5a2392 compat: csi parameters are always decimal
There can be some leading zeros.
2013-04-28 17:35:48 +02:00
Boris Faure 3694c88ccb compat: handle cursor-controls chars in ESC sequences 2013-04-27 21:17:14 +02:00
Boris Faure 16e143f970 compat: add margin top support on Origin mode 2013-04-22 22:38:56 +02:00
Boris Faure 4daccf1fe4 compat: add ugly testing code to change between 80/132 cols 2013-04-22 22:28:50 +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
Boris Faure 13a11e5a92 compat: add some csi dec private modes TODOs 2013-04-21 21:51:07 +02:00
Boris Faure 65f07f7700 handle DCS status string requests 2013-04-21 21:51:07 +02:00
Boris Faure 59ad20f6f8 improve device attributes queries 2013-04-21 21:51:07 +02:00
Carsten Haitzler eca8593193 infra for multiple terms per split slot. 2013-03-17 23:52:13 +09:00
Carsten Haitzler 7d90f43fff restore terminology escapes. 2013-03-14 20:27:36 +09:00
Jean-Philippe Andre ffd8f82a52 Fix last commit
Invalid buffer size
2013-03-14 12:14:34 +09:00
Jean-Philippe Andre 3223e32949 Fix crashes in escape sequence parsings
Crashes happen when using cat against binary files (png, mp4, ...)

Buffer overflow in _handle_esc_dcs()
Suspected overflow in _handle_esc_terminology()
Invalid return value in _handle_esc_terminology()
Don't write "ABC\r\n" on ENQ symbol
Silence some errors
2013-03-14 12:14:34 +09:00
Carsten Haitzler c0dcca4c2d no sleep on nul bytes - seems as if term hangs.. when its just slow...
SVN revision: 83705
2013-02-07 06:48:03 +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
Carsten Haitzler 6618fb3262 require escape to bgein and end any run of chars that represent a
block item.



SVN revision: 83398
2013-01-29 03:34:50 +00:00