From d1273bbd99daf9b1855d82bf315db8ede20abde5 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 3 Nov 2026 16:52:58 -0300 Subject: fs: a pane's ctl read ends with its mode (mode:normal|insert|select|tty, select being normal mode extending), and kbdin takes Plan 9's Kalt, Kshift and Kctl runes (U+F015-F017), each adding its modifier to the key after it, an Alt or Ctrl key typing no text: the two surfaces the behavioural tests' inventory found most wanted (90 tests read body.mode, 18 send Alt or Shift); the tests that pinned the ctl line's end look for its words instead Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- test/fs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/fs.py') diff --git a/test/fs.py b/test/fs.py index bd5ab501..5690cedc 100644 --- a/test/fs.py +++ b/test/fs.py @@ -267,8 +267,8 @@ def discovery(binary, embedded=False): # wctl `current` does; a pane's ctl line ends saying which it is. client.write('/focus', f'{first}\n'.encode()) assert client.read('/focus') == f'{first}\n'.encode() - assert client.read(f'/pane/{first}/ctl').endswith(b' current ') - assert client.read(f'/pane/{second}/ctl').endswith(b' notcurrent ') + assert b' current ' in client.read(f'/pane/{first}/ctl') + assert b' notcurrent ' in client.read(f'/pane/{second}/ctl') try: client.write('/focus', b'99999\n') raise AssertionError('focus took a serial no pane has') -- cgit v1.3