]> git.lizzy.rs Git - plan9front.git/commit
acme: implement 'scratch' ctl command (thanks Drew DeVault)
authorkvik <kvik@a-b.xyz>
Sun, 31 May 2020 20:39:46 +0000 (22:39 +0200)
committerkvik <kvik@a-b.xyz>
Sun, 31 May 2020 20:39:46 +0000 (22:39 +0200)
commit8918bd598190b8c467746524f1886cc40be0b617
tree816d5d531138eb95f1d59d490b979181b6549960
parent5cd7f7b0ec0df483bb5fd768ed59829e44849ed3
acme: implement 'scratch' ctl command (thanks Drew DeVault)

The new command marks the target window as a scratch window -- a window
whose state cannot be "dirtied" by changes made to its body, therefore
avoiding warnings about unsaved changes when deleting the window or
exiting acme.

Existing examples of scratch windows are error, directory, and guide
windows, whose scratchness is set internally.

With the new command users and programs alike can create their own
scratch windows.  This is put to use in acme's own win(1).
acme/bin/source/win/main.c
sys/man/4/acme
sys/src/cmd/acme/xfid.c