191 Commits

Author SHA1 Message Date
Mitchell Hashimoto
dcf0194a2f max_timer: don't call callback in the same tick anymore 2022-04-29 19:27:52 -07:00
Mitchell Hashimoto
49f28b3bb7 have to use an async handle to wake up event loop for max timer 2022-04-29 19:24:17 -07:00
Mitchell Hashimoto
bb01357c42 Move the render to a timer that slows down under load 2022-04-29 19:21:06 -07:00
Mitchell Hashimoto
b0aa222e58 libuv: Embed now uses a mutex + cond var 2022-04-29 19:20:47 -07:00
Mitchell Hashimoto
e1a58c5cbc libuv: add more APIs 2022-04-29 19:19:51 -07:00
Mitchell Hashimoto
f11531bc3f libuv: add Cond, Mutex 2022-04-29 18:49:36 -07:00
Mitchell Hashimoto
ebec508da5 libuv: Loop.now 2022-04-29 17:07:48 -07:00
Mitchell Hashimoto
cfcc72e0e8 tracy: support allocation wrapping 2022-04-29 14:37:16 -07:00
Mitchell Hashimoto
330d2ea270 integrate tracy more deeply 2022-04-29 13:39:56 -07:00
Mitchell Hashimoto
10736e2eb4 initial tracy support 2022-04-29 09:15:49 -07:00
Mitchell Hashimoto
aae3eb88de vendor: add tracy v0.7.8 2022-04-29 08:38:49 -07:00
Mitchell Hashimoto
fbe9c10944 add tracy and update Zig 2022-04-29 08:33:10 -07:00
Mitchell Hashimoto
fdde63cd36 vendor: remove stb 2022-04-29 08:28:58 -07:00
Mitchell Hashimoto
8a42336741 remove vendor/cglm 2022-04-29 08:28:25 -07:00
Mitchell Hashimoto
bb24513c1a remove old unused files 2022-04-29 08:27:16 -07:00
Mitchell Hashimoto
c180f7d30e unused comment 2022-04-29 08:11:00 -07:00
Mitchell Hashimoto
0c417027ef jank wrap handling (by not wrapping at all) 2022-04-28 21:40:10 -07:00
Mitchell Hashimoto
19a0b874f2 send control characters 2022-04-28 21:29:05 -07:00
Mitchell Hashimoto
cbd6505d25 terminal: scrolling 2022-04-28 21:18:27 -07:00
Mitchell Hashimoto
79d2474aae send tab to process 2022-04-28 20:10:42 -07:00
Mitchell Hashimoto
f44649476d horizontal tab off by one, add unit tests 2022-04-27 21:06:28 -07:00
Mitchell Hashimoto
53702343c2 ctrl-l is form feed 2022-04-27 20:57:43 -07:00
Mitchell Hashimoto
516e500b76 fix some miscalculations with tabstops, add test 2022-04-27 20:43:10 -07:00
Mitchell Hashimoto
15a816f863 horizontal tab, implement tabstops using a default value 2022-04-27 20:21:34 -07:00
Mitchell Hashimoto
3857e7f519 don't crash on htab, but its not implemented yet 2022-04-27 09:30:39 -07:00
Mitchell Hashimoto
2767f19ced bell doesn't crash 2022-04-27 09:12:23 -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
e462f35727 don't ignore fcntl return for macos 2022-04-26 17:14:26 -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
a2a22791ee SegmentedPool 2022-04-26 16:18:34 -07:00
Mitchell Hashimoto
3881f9053e libuv: expose WriteReq 2022-04-26 16:18:21 -07:00
Mitchell Hashimoto
b74b6103ea update command comments 2022-04-26 14:51:26 -07:00
Mitchell Hashimoto
22c34512cb Command: setup fd properly on mac 2022-04-26 14:42:42 -07:00
Mitchell Hashimoto
c565a889f9 pty: use libc ioctl for compat 2022-04-26 14:20:17 -07:00
Mitchell Hashimoto
cf40a33fdd hook up pty master to libuv 2022-04-25 19:32:39 -07:00
Mitchell Hashimoto
4bb2808d73 libuv: Errno, build up errors at comptime 2022-04-25 19:20:54 -07:00
Mitchell Hashimoto
0258b24d1f libuv: stream try_write 2022-04-25 19:02:31 -07:00
Mitchell Hashimoto
a0424d3a86 libuv: pipe reading 2022-04-25 18:58:32 -07:00
Mitchell Hashimoto
2f457bbd97 libuv: stream writes 2022-04-25 17:23:29 -07:00
Mitchell Hashimoto
ce3a3159dd libuv: beginning Pipes so we can more easily test streaming 2022-04-24 22:17:53 -07:00
Mitchell Hashimoto
02eeece569 libuv: start shared stream functions 2022-04-24 22:03:14 -07:00
Mitchell Hashimoto
6613ae0f8f libuv: starting Tty impl 2022-04-24 21:57:52 -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
9d77e9e335 kevent properly blocks
kevent returns immediately if (1) event list is empty or (2) changelist
is NOT empty. This forces CPU on mac to be very high because this
becomes a hot loop.
2022-04-24 10:22:33 -07:00