DEVDRAW(1)
okay so this is DEVDRAW(1) β devdraw, from the General Commands Manual β and we're about to make Unix make sense, bestie π
β¨ NAME β¨
devdraw β draw device simulator. periodt. π
β¨ SYNOPSIS β¨
invoked via initdraw (see graphics(3))
π DESCRIPTION π
Devdraw serves a custom graphics protocol and is the only program that talks directly to X window servers. no cap. π₯οΈβ¨
π Apple macOS π
On macOS, because a laptop trackpad click only has one button (the trackpad itself), Option-click is button 2, and Command-click is button 3. While the main mouse button is held down, Control, Option, and Command serve as simulated buttons 1, 2, 3 for chording in acme(4). For example, the 1-3 pasting chord in acme can be executed by highlighting text while holding down the trackpad button and then, while still holding down the button, pressing the Command key. π«Ά
As usual, buttons 4 and 5 represent a scroll wheel. Two-finger scrolling on the trackpad sends those button events. π±οΈ
Holding down shift while clicking adds 5 to the button number. For example, Command-Click is button 3, so Command-Shift-Click is button 8. Most programs do not respond to those buttons; one notable exception is acme(1), which interprets button 8 (shifted button 3) as a reverse search. π
Typing Command-F toggles full screen mode. π₯οΈ
Devdraw automatically detects high-resolution (retina) displays. For debugging, typing Command-R toggles retina mode. π
Other than the special cases mentioned above, holding down Command while typing a character: Kcmd (0xF100) plus that character. Some programs (notably acme(1)) recognize standard keyboard shortcuts such as Command-Z (undo), Command-Shift-Z (redo), Command-X (cut), and Command-V (paste). π
π₯οΈ X Windows π₯οΈ
On Unix systems, Control-click is mouse button 2, and Alt-click is mouse button 3. While the main mouse button is held down, Control and Alt serve as simulated buttons 2, 3 for chording in acme(4). For example, the 1-3 pasting chord in acme can be executed by highlighting text while holding down the trackpad button and then, while still holding down the button, pressing the Alt key. π¦
Because the Control and Alt keys have other meanings (see keyboard(7) for the Alt key's meaning) and there is no third modifier key like on the Mac, there is no way to type Kcmd variants, so there is no access to keyboard shortcuts for undo, redo, cut, and paste. π periodt.
π SOURCE π
/src/cmd/devdraw β that's the source, bestie. πβ¨
π¦ SEE ALSO π¦
π BUGS π
Devdraw should probably present a standard 9P server instead of using its own protocol. that's the bug note, and it's lowkey iconic. π
okay that's the whole page. footer sign-off: it's just DEVDRAW(1) β no version, no date, just the manual name doing main-character energy, bestie π
β¨
π¦ where this page comes from
- alpine 3.24: plan9port-doc 0_git20260208-r0 Β· LPL-1.02
- arch rolling: plan9port 20261021-2 Β· custom
- nixos 26.05: plan9port 0-unstable-2025-11-10
- nixos 26.05: plan9port-wayland 0-unstable-2025-11-26
- nixpkgs unstable: plan9port 0-unstable-2025-11-10
- nixpkgs unstable: plan9port-wayland 0-unstable-2025-11-26
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms