From 031217715fdd68556ffab79e9b898d9f8f80f035 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Fri, 18 Jul 2025 03:08:58 -0400 Subject: usr: nerve: Add 'peek' verb to nerve(1) While poking at a nerve can be very useful, there are times where we need to peek at them to see their current state. This commit introduces the 'peek' verb to do exactly that. Here is how one may peek at the console features: -- [chloe::osmora]~ nerve peek consfeat ansi_esc=1 show_curs=1 -- Signed-off-by: Ian Moffett --- share/man/man1/nerve.1 | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'share/man/man1/nerve.1') diff --git a/share/man/man1/nerve.1 b/share/man/man1/nerve.1 index e15a9fd..8f2d19e 100644 --- a/share/man/man1/nerve.1 +++ b/share/man/man1/nerve.1 @@ -34,7 +34,9 @@ nerve [ .. payload for pokes ..] verb 'poke': Poke a nerve -nerve ending 'consattr': Console attributes +verb 'peek': Peek at a nerve + +nerve ending 'consattr': Console attributes nerve ending 'consfeat': Console features @@ -53,5 +55,19 @@ nerve poke consattr 0 0 verb nerve [x] [y] .Ed +A nerve may also be peeked at by using the 'peek' verb. Here is an example of the usage +of this verb: + +.Bd -literal +nerve peek consfeat + / / + verb nerve + +output: + ansi_esc=1 + show_curs=0 + ... +.Ed + .Sh AUTHORS .An Ian Moffett Aq Mt ian@osmora.org -- cgit v1.2.3