mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 00:36:07 +03:00

When a shell is forced, we would supply its /-prefixed executable name to mimic a path location. The rest of the integration detection logic assumes just a base executable name. Fix the forced names accordingly. Also add a unit test for this "force shell" behavior.
22 lines
802 B
Zig
22 lines
802 B
Zig
//! IO implementation and utilities. The IO implementation is responsible
|
|
//! for taking the config, spinning up a child process, and handling IO
|
|
//! with the terminal.
|
|
|
|
pub usingnamespace @import("termio/message.zig");
|
|
pub const Exec = @import("termio/Exec.zig");
|
|
pub const Options = @import("termio/Options.zig");
|
|
pub const Thread = @import("termio/Thread.zig");
|
|
pub const Mailbox = Thread.Mailbox;
|
|
|
|
/// The implementation to use for the IO. This is just "exec" for now but
|
|
/// this is somewhat pluggable so that in the future we can introduce other
|
|
/// options for other platforms (i.e. wasm) or even potentially a vtable
|
|
/// implementation for runtime polymorphism.
|
|
pub const Impl = Exec;
|
|
|
|
test {
|
|
@import("std").testing.refAllDecls(@This());
|
|
|
|
_ = @import("termio/shell_integration.zig");
|
|
}
|