@@ -314,7 +314,7 @@ def _follow_logs_interactive(*, compose_path: Path) -> None:
314314 """Follow container logs with keyboard detach support.
315315
316316 Displays a persistent hint on the last terminal row using a scroll
317- region. Press Ctrl+C or Ctrl+ D to detach — containers keep running
317+ region. Press Ctrl+D to detach — containers keep running
318318 because they are managed by systemd.
319319 """
320320 from utils .compose import get_service_info , parse_compose
@@ -329,7 +329,7 @@ def _follow_logs_interactive(*, compose_path: Path) -> None:
329329
330330 if is_tty :
331331 _cols , rows = shutil .get_terminal_size ()
332- hint = ' \033 [2mpress Ctrl+C to detach\033 [0m'
332+ hint = ' \033 [2mpress Ctrl+D to detach\033 [0m'
333333 # Save cursor, set scroll region to rows 1..(rows-1), write hint on
334334 # the last row, then restore cursor so podman output resumes from
335335 # the current position (right after the progress lines).
@@ -359,17 +359,6 @@ def _follow_logs_interactive(*, compose_path: Path) -> None:
359359 except KeyboardInterrupt :
360360 # Ctrl+C in cbreak mode still generates SIGINT.
361361 proc .terminate ()
362- finally :
363- termios .tcsetattr (fd , termios .TCSADRAIN , old )
364- try :
365- proc .wait (timeout = 5 )
366- except subprocess .TimeoutExpired :
367- proc .kill ()
368- proc .wait ()
369- if is_tty :
370- # Reset scroll region and clear the hint line.
371- sys .stdout .write ('\033 [r\033 [K' )
372- sys .stdout .flush ()
373362
374363
375364def compose_up (
0 commit comments