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
Carsten Haitzler
3b9b38b86c
make block insert allow the inserter to specify a character to replace
...
on insert. this allows multiple insertions to be "active
simultaneously". until all the inset chars are used up. need to wrap
these insert chars with begin/end escapes still for efficiency and so
you can use insert chars elsewhere in the same text output area.
also clean up warnings.
SVN revision: 83394
2013-01-29 00:43:13 +00:00
Carsten Haitzler
2781da8076
tcat... comes out to play fir the first time. not final... but a start.
...
SVN revision: 83385
2013-01-28 16:06:26 +00:00
Boris Faure
526cc2aeac
use device id from xterm
...
Should fix some emacs compatibility issues.
Bug was fixed with help from 'ptyproxy' I wrote:
https://github.com/billiob/ptyproxy
SVN revision: 83047
2013-01-21 22:51:26 +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
Carsten Haitzler
4cb6987ecf
ummm shouldnt dbg.. be a dbg log? :)
...
SVN revision: 81013
2012-12-15 07:48:17 +00:00
Boris Faure
d18cc90367
terminology: cleanup escape sequences parsing. Fix #1628
...
Charset length for example was not correctly handled and could even lead
to segfaults.
SVN revision: 80980
2012-12-14 18:52:19 +00:00
Boris Faure
480c5506b7
terminology: rewrite mouse handling
...
Fix mouse in vim. Should also fix it in mc.
SVN revision: 78412
2012-10-24 21:34:36 +00:00
Boris Faure
db90244654
terminology: correctly set device id
...
In vim, 'set ttymouse' was returning 'xterm' and not 'xterm2' because
the device id was incorrectly returned.
SVN revision: 78411
2012-10-24 21:34:25 +00:00
Stefan Schmidt
8b54f15969
terminology: Don't shadow a previous local i here.
...
I is such a popular variable name. :)
SVN revision: 78371
2012-10-23 14:47:51 +00:00
Sebastian Dransfeld
4df8415b4e
terminology: mark/remove unused variables
...
SVN revision: 77628
2012-10-09 08:40:48 +00:00
Sebastian Dransfeld
3bd79e480c
terminology: handle mouse move
...
SVN revision: 77489
2012-10-04 23:19:17 +00:00
Sebastian Dransfeld
2a03fbbd04
terminology: Add DCS handler
...
SVN revision: 77485
2012-10-04 23:18:59 +00:00
Sebastian Dransfeld
64d87067ba
terminology: Check for 7-bit ST (ESC \)
...
SVN revision: 77484
2012-10-04 23:18:54 +00:00
Sebastian Dransfeld
2b8026c24c
terminology: Check for correct terminator
...
SVN revision: 77483
2012-10-04 23:18:50 +00:00
Sebastian Dransfeld
146ee734c7
terminology: define important chars for all file
...
SVN revision: 77482
2012-10-04 23:18:46 +00:00
Sebastian Dransfeld
60fc5e860c
terminology: Fix typo in comment
...
SVN revision: 77481
2012-10-04 23:18:42 +00:00
Sebastian Dransfeld
500e7be8b2
terminology: pretend we are a new xterm version
...
This improves how vim interacts with terminology.
SVN revision: 77480
2012-10-04 23:18:39 +00:00
Sebastian Dransfeld
c6648aa523
terminology: Fix typo in comment
...
SVN revision: 77478
2012-10-04 23:18:30 +00:00
Gustavo Lima Chaves
f7e338ebab
[terminology] Handling csi escape code 'Z'.
...
Unfortunately it doesn't fix the 'rendering' problems of the
application it came from yet (mutt-kz), but it seems to be what
http://www.inwap.com/pdp10/ansicode.txt says it should do.
Anyone using mutt with a sidebar (only on sidebar showing mode we get
the booboos, but not on other terminals) willing to help? :P
SVN revision: 77442
2012-10-04 15:23:07 +00:00
Sebastian Dransfeld
9c9511429e
terminology: Fix xterm escape termination
...
According to http://rtfm.etla.org/xterm/ctlseq.html xterm Operating
System Control escape sequences are terminated by ST or BEL.
This fixes #1499
SVN revision: 77198
2012-09-28 11:12:15 +00:00
Sebastian Dransfeld
bb20618912
terminology: use enough space for output
...
If value is outside range it can use most of unsigned int range as it is
a unicode character.
SVN revision: 77197
2012-09-28 11:12:04 +00:00
Carsten Haitzler
7b8304692b
and call the extended escape handler too.
...
SVN revision: 73799
2012-07-13 08:47:14 +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