summaryrefslogtreecommitdiff
path: root/core/Term.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/Term.zig')
-rw-r--r--core/Term.zig8
1 files changed, 1 insertions, 7 deletions
diff --git a/core/Term.zig b/core/Term.zig
index 86c7518b..968a8d68 100644
--- a/core/Term.zig
+++ b/core/Term.zig
@@ -68,11 +68,7 @@ pub const State = struct {
written: bool = true,
/// The emulator as its program has made it, for the replay digest.
- /// Under screen-state terminals the emulator is the authority's, and a
- /// replica's is what the last delta made it: compared as screens
- /// (test/replicas.zig), not step by step.
pub fn digest(s: *const State, h: *walk.Hasher) void {
- if (tape.screenState()) return;
s.digestScreen(h, true);
}
@@ -135,10 +131,8 @@ pub fn open(gpa: std.mem.Allocator, cols: u16, rows: u16) !*State {
/// session's machine's) as its emulator reads it, made the tape's answer
/// (P30: the device's answer as it was, as a file's bytes are): the session
/// reads it, a temporary file deleted and shared memory unlinked there once,
-/// and every replica is handed the same bytes, or the same failure. Under
-/// screen state a replica feeds no emulator: the read is the session's.
+/// and every replica is handed the same bytes, or the same failure.
fn media(ctx: *const anyopaque, read: *const fn (*const anyopaque) iface.MediumError![]u8, gpa: std.mem.Allocator) iface.MediumError![]u8 {
- if (tape.screenState()) return read(ctx);
return tape.valueIn(.medium, gpa, readMedium, .{ read, ctx });
}