Instructions: Search for AMPDO: comments in the codebase to gather feedback and instructions about code changes.
Use ripgrep to find AMPDO: comments with context:
rg "AMPDO:" -C 3
const std = @import("std"); | |
const builtin = @import("builtin"); | |
const ourio = @import("ourio"); | |
const zeit = @import("zeit"); | |
const posix = std.posix; | |
const Options = struct { | |
all: bool = false, | |
long: bool = false, |
Terminal emulators typically receive window resize events by installing a signal handler for the SIGWINCH signal. Handling of these signals can create challenges due to their inherently racy properties. Resize events must be synchronized with other application state in a safe manner.
Standard control sequences exist to query the current terminal size from the
terminal and receive an in-band control sequence with the window size. However,
this system requires polling - which is not ideal. Usually, SIGWINCH
handling