mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-08-28 01:51:43 +00:00
terminal: rename ReadonlyStream to TerminalStream
Rename stream_readonly.zig to stream_terminal.zig and its exported types from ReadonlyStream/ReadonlyHandler to TerminalStream. The "readonly" name is now wrong since the handler now supports settable effects callbacks. The new name better reflects that this is a stream handler for updating terminal state.
This commit is contained in:
@@ -419,11 +419,12 @@ pub const Action = union(Key) {
|
||||
/// e.g. you don't need to pay a conditional branching cost on every single
|
||||
/// action because the Zig compiler codegens separate code paths for every
|
||||
/// single action at comptime.
|
||||
pub fn Stream(comptime Handler: type) type {
|
||||
pub fn Stream(comptime H: type) type {
|
||||
return struct {
|
||||
const Self = @This();
|
||||
|
||||
pub const Action = streampkg.Action;
|
||||
pub const Handler = H;
|
||||
|
||||
const T = switch (@typeInfo(Handler)) {
|
||||
.pointer => |p| p.child,
|
||||
|
||||
Reference in New Issue
Block a user