mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-20 14:25:19 +00:00
Start pulling out IO thread and IO implementation
This commit is contained in:
17
src/termio.zig
Normal file
17
src/termio.zig
Normal file
@@ -0,0 +1,17 @@
|
||||
//! IO implementation and utilities. The IO implementation is responsible
|
||||
//! for taking the config, spinning up a child process, and handling IO
|
||||
//! with the termianl.
|
||||
|
||||
pub const Exec = @import("termio/Exec.zig");
|
||||
pub const Options = @import("termio/Options.zig");
|
||||
pub const Thread = @import("termio/Thread.zig");
|
||||
|
||||
/// 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());
|
||||
}
|
||||
Reference in New Issue
Block a user