RSSAmplifier

Blog

rockorager.dev

Recent content on rockorager.dev

rockorager.devRSS feed ↗5 posts

Latest posts

Private Mode for Terminal Visibility Reports

Terminal applications may perform expensive rendering work even when their output cannot be seen. Focus reports do not solve this problem: an unfocused terminal may remain visible, while a focused terminal may be occluded, suspended, or displayed in a background tab. This specification defines a new DEC Private Mode that enables terminal visibility reports: 2033 - Enable or disable terminal…

Private Mode for Automatic Paste Notifications

Terminal applications commonly use bracketed paste mode (private mode 2004) to distinguish between typed input and pasted content. This prevents accidental command execution and allows special handling of multi-line pastes. However, bracketed paste only provides plain text data and no MIME type information. The Kitty clipboard protocol defines a request-response mechanism for reading and writing…

OSC 9;4 - Progress Bar Sequence

This document is provided for ease of visibility. The canonical specification is maintained by ConEmu at https://conemu.github.io/en/AnsiEscapeCodes.html The OSC 9;4 sequence is a terminal escape sequence originally created by ConEmu for displaying progress bars. It has since been adopted by other terminal emulators including Ghostty and Windows Terminal. In supporting terminals, this sequence can…

lsr: ls but with io_uring

As an excercise in syscall golf, I wrote an implementation of ls(1) which uses my IO library, ourio to perform as much of the IO as possible. What I ended up with is something that is faster than any version or alternative to ls I tested, and also performs an order of magnitude fewer syscalls . I’m calling it lsr . Let’s start with the benchmarks, then we’ll see how we got there.

Private Mode for In-Band Window Resize Notifications

Originally published at GitHub Gist 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…