Skip to content

Commit ff1e60a

Browse files
committed
Bump blessed to allow for EOF handling
1 parent 0b9e26b commit ff1e60a

4 files changed

Lines changed: 6 additions & 8 deletions

File tree

gambaterm/keyboard_input.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,7 @@ def __init__(
125125
self._pop_keystrokes = pop_keystrokes
126126

127127
def pop_keystrokes(self) -> list[Keystroke]:
128-
if self._pop_keystrokes is not None:
129-
return self._pop_keystrokes()
130-
return super().pop_keystrokes()
128+
return self._pop_keystrokes()
131129

132130

133131
def is_kitty_keyboard_protocol_supported(

gambaterm/ssh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ async def run_server(
425425
# server.close_clients()
426426
for transport in server._clients:
427427
for channel in transport._protocol._channels.values():
428-
channel._session._writers[None].write("\x04")
428+
channel._session._writers[None].write_eof()
429429
await server.wait_closed()
430430

431431

gambaterm/telnet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ async def _log_connection_stats(
216216
f"kicking idle client after {_fmt_idle(idle_duration)}"
217217
)
218218
# Send an EOF to the emulator thread to trigger a graceful shutdown.
219-
reader.feed_data(b"\x04")
219+
reader.feed_eof()
220220
return
221221

222222
prev_time = now

uv.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)