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
Mitchell Hashimoto
724b2aedfa
various fixes for macos
2022-04-24 10:14:25 -07:00
Mitchell Hashimoto
747ebfb628
fix pty resizing on darwin
2022-04-24 09:32:03 -07:00
Mitchell Hashimoto
c023fed8f0
compilation for macos works?
2022-04-23 14:15:54 -07:00
Mitchell Hashimoto
8b0d914ddc
improve building on darwin
2022-04-23 14:00:21 -07:00
Mitchell Hashimoto
2bb2897d63
Command: set custom env vars
2022-04-23 13:44:57 -07:00
Mitchell Hashimoto
38685d965e
expandPath for looking in PATH
2022-04-23 13:01:20 -07:00
Mitchell Hashimoto
63cc2ba4fa
libuv: implement kqueue
2022-04-23 10:31:02 -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
0b689723f7
use async handles to more immediately exit the event loop
2022-04-22 15:42:08 -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
7d48135e58
libuv: fix self-dependent zig error
2022-04-22 13:28:59 -07:00
Mitchell Hashimoto
947596ea5e
clean up some of the libuv interations
2022-04-22 12:15:15 -07:00
Mitchell Hashimoto
a57f4e76f1
fully integrate libuv, no crash on close
2022-04-22 12:11:53 -07:00
Mitchell Hashimoto
ccf95d823e
libuv: Async
2022-04-22 11:57:11 -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
001aac26e0
libuv: backend fd/timeout
2022-04-21 19:47:19 -07:00
Mitchell Hashimoto
2496ffafec
libuv: timer start
2022-04-21 19:43:20 -07:00
Mitchell Hashimoto
10440d6783
libuv: Timers
2022-04-21 19:32:48 -07:00
Mitchell Hashimoto
4b0cddc948
libuv: thread self, no deinit
2022-04-21 16:28:06 -07:00
Mitchell Hashimoto
a5b3b52b1b
libuv: Threads
2022-04-21 16:26:26 -07:00
Mitchell Hashimoto
b1f9f68e87
libuv: Sem
2022-04-21 15:57:45 -07:00
Mitchell Hashimoto
21ee510471
starting libuv bindings
2022-04-21 09:33:32 -07:00
Mitchell Hashimoto
55351487a9
accept enter to make a newline
2022-04-19 20:26:06 -07:00
Mitchell Hashimoto
df9fcf636f
calculate the cell width/height using the font size scale factor
2022-04-19 20:05:24 -07:00
Mitchell Hashimoto
d250bcda65
fix the baseline for font rendering
2022-04-19 19:30:30 -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
7a00c54f25
cell: convert atlas x/y to NDC in shader
2022-04-19 09:20:55 -07:00
Mitchell Hashimoto
ac8120f073
update some comments
2022-04-19 09:02:50 -07:00
Mitchell Hashimoto
c43c1d38f1
add background pass
2022-04-19 08:54:39 -07:00
Mitchell Hashimoto
e9661fa55e
render multiple lines
2022-04-19 08:42:37 -07:00
Mitchell Hashimoto
81d8ca5b9c
render text from our terminal!
2022-04-18 17:57:08 -07:00
Mitchell Hashimoto
34cb9b2c27
setup our GPU cells based on terminal state
2022-04-18 16:21:22 -07:00