Commit Graph

347 Commits

Author SHA1 Message Date
Kovid Goyal
7342367679 Split out the glfw constants into their own module so they can be used on Travis without needing glfw 2016-11-21 13:00:15 +05:30
Kovid Goyal
d46bf3f8b1 ... 2016-11-21 12:51:13 +05:30
Kovid Goyal
3f8a4b26a4 Make glfw available on Travis 2016-11-21 12:48:40 +05:30
Kovid Goyal
2480a8dd60 Infrastructure for configurable keybindings 2016-11-21 12:43:16 +05:30
Kovid Goyal
b8a613f736 ... 2016-11-21 11:01:35 +05:30
Kovid Goyal
854b8e84f7 Annotate terminfo features 2016-11-21 10:38:12 +05:30
Kovid Goyal
3c8d2dce36 ... 2016-11-21 10:25:53 +05:30
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