Mitchell Hashimoto
1a846597b1
command: stylistic changes
2023-11-05 18:03:22 -08:00
Mitchell Hashimoto
7594bbd621
shuffle some source around
2023-11-05 15:27:46 -08:00
kcbanner
232df8de8f
windows: add support for the glfw backend on Windows
...
Changes:
- Add WindowsPty, which uses the ConPTY API to create a pseudo console
- Pty now selects between PosixPty and WindowsPty
- Windows support in Command, including the ability to launch a process with a pseudo console
- Enable Command tests on windows
- Add some environment variable abstractions to handle the missing libc APIs on Windows
- Windows version of ReadThread
2023-11-05 23:15:49 +00:00
Mitchell Hashimoto
b049cb7d21
command: allow relative paths in PATH
2023-10-26 09:30:11 -07:00
Nameless
49f1866f28
add tests for fuzzed results, clean up unimplemented osc warning
2023-10-25 11:44:16 -05:00
Krzysztof Wolicki
3936b471a8
Disable iconv on Windows by default (enabled via cli flag).
...
Skip various tests not implemented on windows.
2023-10-19 09:39:20 +02:00
Will Pragnell
8f2ab46e1e
windows: use cross platform consts where available
2023-09-15 16:01:33 -07:00
Will Pragnell
d700fb6fc7
windows: implement expandPath
2023-09-14 20:48:09 -07:00
Jonathan Marler
a2e881ff4e
windows: initial support for zig build test
...
Makes progress getting "zig build test" to work on windows. Mostly
fixed issues around build configuration and added some branches throughout
the Zig code to return/throw errors for unimplemented parts.
I also added an initial implementation for getting the home dir.
2023-09-14 03:15:40 -06:00
Will Pragnell
2e54ad2cce
command: only spin on waitpid if it's non-blocking
2023-08-31 07:51:50 -07:00
Will Pragnell
aa9e12dac2
termio/exec: don't leak zombie subprocesses
2023-08-30 21:37:38 -07:00
Mitchell Hashimoto
9a0d131b5b
move TempDir to src/os and use the real tmpDir
2023-07-09 12:14:05 -07:00
Mitchell Hashimoto
314f9287b1
Update Zig ( #164 )
...
* update zig
* pkg/fontconfig: clean up @as
* pkg/freetype,harfbuzz: clean up @as
* pkg/imgui: clean up @as
* pkg/macos: clean up @as
* pkg/pixman,utf8proc: clean up @as
* clean up @as
* lots more @as cleanup
* undo flatpak changes
* clean up @as
2023-06-30 12:15:31 -07:00
Mitchell Hashimoto
7116ce0806
update zig version
2023-05-29 08:24:12 -07:00
Mitchell Hashimoto
ce86c64b42
update zig, src for loops
2023-02-27 21:46:42 -08:00
Mitchell Hashimoto
ec956debb7
Command/Pty work better with Flatpak but not 100% yet
2023-02-25 21:19:57 -08:00
Mitchell Hashimoto
465b4df6ea
fix tests for WNOHANG commit
2022-11-16 21:04:31 -08:00
Mitchell Hashimoto
d567a976b4
waitpid should specify WNOHANG
...
If the child process our terminal is executing behaves poorly and
doesn't waitpid all of its own children, then we can hang the full
terminal. This is not ideal, so specify WNOHANG.
2022-11-16 20:54:17 -08:00
Mitchell Hashimoto
63fab367fe
Command supports setting cwd
2022-11-01 17:51:50 -07:00
Mitchell Hashimoto
c7db5b96d6
get rid of stage1 compat
2022-11-01 14:10:35 -07:00
Mitchell Hashimoto
a3d9dad726
fix tests so they pass on mac
2022-09-30 13:24:54 -07:00
Mitchell Hashimoto
a1d238e385
Fix a couple bugs in memory access (tests only)
2022-09-23 12:51:50 -07:00
Mitchell Hashimoto
d16c672771
update Zig, fixed new invalid octal error
2022-08-19 08:58:27 -07:00
Mitchell Hashimoto
5c2edf4d2a
Fix some stage2 compilation errors
2022-08-17 14:42:23 -07:00
Mitchell Hashimoto
5b47195e49
update zig
2022-05-17 12:05:56 -07:00
Mitchell Hashimoto
e462f35727
don't ignore fcntl return for macos
2022-04-26 17:14:26 -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
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
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
74e04355a0
improve commnts
2022-04-16 11:12:38 -07:00
Mitchell Hashimoto
82a4aef1fa
TempDir implementation
2022-04-16 11:07:27 -07:00
Mitchell Hashimoto
992d52fe81
working on subprocessing
2022-04-16 10:22:18 -07:00