diff --git a/meshterm/ui/config_editor.py b/meshterm/ui/config_editor.py index 99d3e3a..97e15d4 100644 --- a/meshterm/ui/config_editor.py +++ b/meshterm/ui/config_editor.py @@ -486,7 +486,7 @@ def _setting_value( class _ConfigMenu(SelectScreen): - """The list of the editor, with the row of the pairing PIN concealed until ``^S`` shows it. + """The list of the editor, with the row of the pairing PIN concealed until ``^E`` shows it. It does all that a grouped select list does. It also has the same toggle as the Device info page: the same chord, the same chip, and the same words. The two pages diff --git a/meshterm/ui/device_info_screen.py b/meshterm/ui/device_info_screen.py index f57f7bc..69fbb46 100644 --- a/meshterm/ui/device_info_screen.py +++ b/meshterm/ui/device_info_screen.py @@ -30,7 +30,7 @@ from .tui.screen import ScrollScreen #: out with two different keys, depending on the page, the user would have one more thing #: to learn with no benefit. A chord also must be *intended*: a PIN never appears because a #: hand touched a letter. -REVEAL_KEY = "^S" +REVEAL_KEY = "^E" class DeviceInfoScreen(ScrollScreen): @@ -112,7 +112,7 @@ class DeviceInfoScreen(ScrollScreen): """Toggle the PIN, or scroll or dismiss, as each result screen does. The chord and the chip of the lane arrive as the same action. Thus the chip is not a - second implementation of the key (``^S`` is bound one time, in the chord table of the + second implementation of the key (``^E`` is bound one time, in the chord table of the session). """ if action == "reveal": diff --git a/meshterm/ui/tui/session.py b/meshterm/ui/tui/session.py index 0ae47d0..6243693 100644 --- a/meshterm/ui/tui/session.py +++ b/meshterm/ui/tui/session.py @@ -102,6 +102,9 @@ from .spinner import spinner_interval #: ``IXON``/``IXOFF``, so ^Q is not XON here. _CTRL_LETTER_CHORDS: dict[str, str] = { "c": "quit", + # ^E shows or hides a concealed value, for example the pairing PIN (JP, 2026-11-20: it + # was ^S, which the sound mute took). No terminal or multiplexer takes it in raw mode. + "e": "reveal", # ^G logs in to the room that a room screen shows. In the input, ^G is not a special key: # it is the bell only in output, and no terminal or multiplexer takes it. "g": "login", @@ -121,10 +124,6 @@ _CTRL_LETTER_CHORDS: dict[str, str] = { "p": "paths", "q": "quit", "r": "retry", - # ^S is the XOFF key. It is safe here for the same reason that ^Q is not XON (refer to - # the text above): the raw mode clears IXON/IXOFF. Thus the terminal never takes it to - # freeze the screen. - "s": "reveal", "u": "url_code", "v": "paste_clipboard", "w": "to_menu", diff --git a/tests/test_gallery.py b/tests/test_gallery.py index 8dc24ae..cfc433a 100644 --- a/tests/test_gallery.py +++ b/tests/test_gallery.py @@ -1763,7 +1763,7 @@ def _device_info(cols: int, rows: int) -> Screen: def _device_info_revealed(cols: int, rows: int) -> Screen: - # The same page after ^S: the widest state of the row that the other case masks. + # The same page after ^E: the widest state of the row that the other case masks. screen = _device_info(cols, rows) screen.handle("reveal") return screen @@ -1780,7 +1780,7 @@ def _config_editor(cols: int, rows: int) -> Screen: def _config_editor_revealed(cols: int, rows: int) -> Screen: - # The same list after ^S, where the PIN row is at its widest. + # The same list after ^E, where the PIN row is at its widest. screen = _config_editor(cols, rows) screen.handle("reveal") return screen