2890 Commits

Author SHA1 Message Date
Kovid Goyal
40d2b59787 Do not use a global variable to store child data 2016-11-21 10:21:17 +05:30
Kovid Goyal
f8403d4dec Fix screen being deleted on resize
Also fix crash when resizing the altbuf
2016-11-21 09:34:16 +05:30
Kovid Goyal
5681138243 Fix scrollback_lines opt not being used 2016-11-21 09:07:52 +05:30
Kovid Goyal
7b1591113a Basic tests for HistoryBuf.rewrap 2016-11-20 22:40:43 +05:30
Kovid Goyal
05c6e7733c Wire up historybuf_rewrap 2016-11-20 22:27:01 +05:30
Kovid Goyal
5dccb91996 Make the rewrap algorithm re-useable for rewrapping of HistoryBuf as well 2016-11-20 22:22:39 +05:30
Kovid Goyal
776224378d Basic tests for HistoryBuf 2016-11-20 20:40:10 +05:30
Kovid Goyal
0b0a216856 Use HistoryBuf (still need to implement rewrap) 2016-11-20 20:20:14 +05:30
Kovid Goyal
222911874d Fix index() not working when page margins defined 2016-11-20 18:04:56 +05:30
Kovid Goyal
5636971999 ... 2016-11-20 14:11:46 +05:30
Kovid Goyal
e3bbb7a3c9 Move savepoints functions into screen.c 2016-11-20 14:11:07 +05:30
Kovid Goyal
46ec0d4e9c Simplify SavepointBuffer implementation 2016-11-20 14:03:28 +05:30
Kovid Goyal
91a68f0089 ... 2016-11-20 13:56:02 +05:30
Kovid Goyal
3a9f540f52 Start work on HistoryBuf 2016-11-20 13:55:19 +05:30
Kovid Goyal
804c86ffc5 Make the screen update delay configurable
Add some comments to the default config
2016-11-19 17:14:44 +05:30
Kovid Goyal
df4c90d94b Double the screen repaint delay
Greatly improves performance when a lot of output is being generated.
2016-11-19 17:07:13 +05:30
Kovid Goyal
d87e4eeb95 Speed un reading from child process
Do the reading into a pre-allocated buffer to avoid mallocs in the inner
loop.
2016-11-19 16:59:12 +05:30
Kovid Goyal
6e7f537850 DRYer 2016-11-19 15:06:56 +05:30
Kovid Goyal
3989413ff9 ... 2016-11-19 14:41:40 +05:30
Kovid Goyal
b996b96695 Remove unused code 2016-11-19 14:34:23 +05:30
Kovid Goyal
12c19d3db1 ... 2016-11-19 13:55:49 +05:30
Kovid Goyal
42976b1048 Allow OSC codes that consist of only a numeric component 2016-11-19 13:48:49 +05:30
Kovid Goyal
561134d1aa ... 2016-11-19 13:36:07 +05:30
Kovid Goyal
b38055b912 Ensure charsets are always valid 2016-11-19 13:13:36 +05:30
Kovid Goyal
ce6a4ca21e oops 2016-11-19 13:13:15 +05:30
Kovid Goyal
04d8e8f619 Implement OSC codes to change foreground and background colors 2016-11-19 12:50:50 +05:30
Kovid Goyal
0ccdebe7f0 ... 2016-11-19 11:44:53 +05:30
Kovid Goyal
e3b9bfd4bb Use a circular buffer for the savepoints
Avoids mallocs during normal operation.
2016-11-19 11:03:21 +05:30
Kovid Goyal
6293b37ead Fix no cursor position update after drawing small amounts of text 2016-11-18 16:46:04 +05:30
Kovid Goyal
14c6d327fd Also output draw commands when dumping commands 2016-11-18 16:29:15 +05:30
Kovid Goyal
1426f87c99 ... 2016-11-18 15:49:39 +05:30
Kovid Goyal
e73b30c663 Fix window title not correct 2016-11-18 15:43:09 +05:30
Kovid Goyal
f5d041ac33 ... 2016-11-18 15:33:29 +05:30
Kovid Goyal
3ce2c0553f Use the new native screen class 2016-11-18 15:30:59 +05:30
Kovid Goyal
6c39b07552 Implement Screen.resize 2016-11-18 12:38:31 +05:30
Kovid Goyal
a120b25286 Stub for DCS codes 2016-11-18 11:31:48 +05:30
Kovid Goyal
4ac03a0064 Implement parsing of OSC codes 2016-11-18 11:16:17 +05:30
Kovid Goyal
1edba3ce42 Implement DECSCUSR 2016-11-17 13:50:20 +05:30
Kovid Goyal
03fd30b4f4 Implement DECSTBM 2016-11-17 11:13:28 +05:30
Kovid Goyal
586304ad6c Implement DSR 2016-11-17 10:59:15 +05:30
Kovid Goyal
4624525419 Use unsigned int for cursor pos 2016-11-17 08:56:26 +05:30
Kovid Goyal
f56da9392c Implement SGR 2016-11-17 08:34:55 +05:30
Kovid Goyal
f5fa40de81 More CSI handlers 2016-11-16 20:19:31 +05:30
Kovid Goyal
745ba5c4cb Allow parameter less CSI sequences 2016-11-16 19:53:38 +05:30
Kovid Goyal
d0c2821339 Start work on connecting CSI callbacks 2016-11-16 13:40:38 +05:30
Kovid Goyal
e50fc2067c Use a single REPORT_COMMAND macro 2016-11-16 12:11:25 +05:30
Kovid Goyal
f6faecbaaa Start work on CSI parser
Also cleaup error reporting and command dumping macros
2016-11-16 11:44:41 +05:30
Kovid Goyal
5208500eb9 Implement basic ESC code handling 2016-11-16 09:07:15 +05:30
Kovid Goyal
44a8cc062e Add testing for command dumping as well 2016-11-14 20:40:54 +05:30
Kovid Goyal
5069b50fb2 Add simple parsing tests 2016-11-14 20:10:01 +05:30