Ryooooooga
19c69f127d
chore(escape): add comments for escape codes
2023-03-12 21:26:50 +09:00
Ryooooooga
6384bbb52d
fix(escape): improve escape codes handling
2023-03-11 22:48:55 +09:00
Ryooooooga
37c5a8c463
style: $ go fmt
2023-03-11 22:27:41 +09:00
Ryooooooga
1b53db93f4
feat(escape.go): just ignore OSC
2022-11-10 22:41:41 +09:00
Ryooooooga
e659668de4
support ANSI invert escape sequence
2022-09-30 13:14:45 +09:00
Jesse Duffield
a826601ada
better highlighting logic
2022-04-15 10:02:11 +10:00
Jesse Duffield
681a61c53e
fix issue with delta trying to finish the current line with the existing colouring
2021-10-24 15:12:48 +11:00
Jesse Duffield
f5a9733d18
awesome WIP
...
WIP
WIP
WIP
WIP
WIP
2020-12-24 15:19:37 +11:00
Jesse Duffield
8a6768078f
support erase-in-line escape sequence when code is zero
2020-10-11 09:48:02 +11:00
Jesse Duffield
d6e4854501
better handling of bold characters
2020-03-01 19:17:00 +11:00
Jesse Duffield
3e1f0f7c3e
support searching in views
2020-02-23 21:51:15 +11:00
Jesse Duffield
54fcea7731
remove mutex from escape code and add mutex to view's draw method
2020-02-14 20:07:01 +11:00
Jesse Duffield
6c933915c3
use mutexes on escape code
2020-01-12 13:53:25 +11:00
Jesse Duffield
985c2f8d59
use go-errors package to give stack traces to new errors
2019-02-11 21:59:59 +11:00
Roi Martin
ed41d1bd2c
Fix error handling in *escapeInterpreter.parseOne()
2017-02-12 15:50:38 +01:00
Roi Martin
139487f578
Remove unneeded check in *escapeInterpreter.parseOne()
2017-02-12 15:40:49 +01:00
Niels Widger
e27f247a3e
Support zero parameteter 'CSI n m' in parseOne
...
According to https://en.wikipedia.org/wiki/ANSI_escape_code#CSI_codes ,
a zero-parameter 'CSI n m' code (for setting SGR parameters) should be
treated as the same as 'CSI 0 m'. This PR changes
escapeInterpreter.parseOne to support this shorthand.
2017-02-12 14:56:43 +01:00
Roi Martin
1ad1e27a52
Minor fixes in escapeInterpreter
2016-11-14 21:50:15 +01:00
Roi Martin
56a1633c76
Minor style changes
2016-11-13 20:45:04 +01:00
Dustin Willis Webber
ff841413b6
256 OutputMode support
2016-11-13 14:06:04 -05:00
Roi Martin
d822523f8c
Make golint happy. Fix typo.
2016-10-11 08:52:03 +02:00
Roi Martin
2e62b6ba19
Respect view's default background and foreground colors
...
Fix issue #58
2016-10-03 19:38:40 +02:00
Roi Martin
132f267b70
Fix minor typo
2016-05-23 00:21:03 +02:00
Roi Martin
1b35b7cd26
escape: remove unnecessary type interpreterReturn
2016-05-23 00:16:59 +02:00
Roi Martin
40dec91023
Initial support for colored text
...
- View contents are stored as cells (rune + colors) instead of runes.
- Uses the escape interpreter coded by @deweerdt in #39 .
2016-05-23 00:16:59 +02:00