34 Commits

Author SHA1 Message Date
Mitchell Hashimoto
c180f7d30e unused comment 2022-04-29 08:11:00 -07:00
Mitchell Hashimoto
19a0b874f2 send control characters 2022-04-28 21:29:05 -07:00
Mitchell Hashimoto
79d2474aae send tab to process 2022-04-28 20:10:42 -07:00
Mitchell Hashimoto
53702343c2 ctrl-l is form feed 2022-04-27 20:57:43 -07:00
Mitchell Hashimoto
15a816f863 horizontal tab, implement tabstops using a default value 2022-04-27 20:21:34 -07:00
Mitchell Hashimoto
7d10c8f0a4 catch errors in ttyRead 2022-04-26 19:52:51 -07:00
Mitchell Hashimoto
9e6d38425a update TODO 2022-04-26 19:47:39 -07:00
Mitchell Hashimoto
7025b53544 add some TODOs 2022-04-26 19:45:12 -07:00
Mitchell Hashimoto
17c6d24bc2 handle backspace 2022-04-26 19:39:37 -07:00
Mitchell Hashimoto
515fbc02fd enter sends '\n' to child process 2022-04-26 17:26:55 -07:00
Mitchell Hashimoto
3b2d93373e hook up the real subprocess reader/writer to the UI! 2022-04-26 17:13:37 -07:00
Mitchell Hashimoto
cf40a33fdd hook up pty master to libuv 2022-04-25 19:32:39 -07:00
Mitchell Hashimoto
9cc19b0553 execute the child command 2022-04-24 14:33:25 -07:00
Mitchell Hashimoto
c4600d584f redraw window during resize 2022-04-24 10:50:35 -07:00
Mitchell Hashimoto
e63f69572f disable retina framebuffer on mac, see comment 2022-04-24 10:48:24 -07:00
Mitchell Hashimoto
724b2aedfa various fixes for macos 2022-04-24 10:14:25 -07:00
Mitchell Hashimoto
825a90e7cc don't blink the cursor while typing 2022-04-23 10:22:27 -07:00
Mitchell Hashimoto
bd7855da46 when losing focus, show hollow box 2022-04-22 21:58:15 -07:00
Mitchell Hashimoto
7169679654 update cells to hide cursor on non-focus 2022-04-22 20:11:42 -07:00
Mitchell Hashimoto
87899421bd don't blink cursor when losing focus 2022-04-22 17:40:37 -07:00
Mitchell Hashimoto
cd602b660c blinking cursor 2022-04-22 15:33:50 -07:00
Mitchell Hashimoto
f8b305df62 pass around the event loop, setup a timer to prove it works 2022-04-22 13:56:39 -07:00
Mitchell Hashimoto
cca32c4d1c embedded libuv loop. still some issues:
1. 100% CPU if no handles/requests
2. slow to exit cause it waits for the next tick
2022-04-22 10:01:52 -07:00
Mitchell Hashimoto
55351487a9 accept enter to make a newline 2022-04-19 20:26:06 -07:00
Mitchell Hashimoto
e2ed1ed745 shader modes, draw a jank cursor 2022-04-19 13:54:50 -07:00
Mitchell Hashimoto
19692f297e set character callback and update the terminal 2022-04-19 13:10:50 -07:00
Mitchell Hashimoto
e9661fa55e render multiple lines 2022-04-19 08:42:37 -07:00
Mitchell Hashimoto
34cb9b2c27 setup our GPU cells based on terminal state 2022-04-18 16:21:22 -07:00
Mitchell Hashimoto
2e46612bc7 attach a terminal to the window, start hinting at renderer hookup 2022-04-18 14:12:35 -07:00
Mitchell Hashimoto
2cd51f0cc4 basic pty opening 2022-04-15 13:09:35 -07:00
Mitchell Hashimoto
8ea0299375 grid keeps track of cells 2022-04-15 09:18:57 -07:00
Mitchell Hashimoto
e672c9d7d5 calculate grid size in dedicated struct, tests 2022-04-15 08:16:22 -07:00
Mitchell Hashimoto
d5ab024521 fix memory leaks 2022-04-15 07:52:08 -07:00
Mitchell Hashimoto
bb902cf4e3 new Window abstraction 2022-04-14 21:07:16 -07:00