From 9c3d3bcec12f46879a1bb14f4efeb03e92f2c06c Mon Sep 17 00:00:00 2001 From: goodboy Date: Tue, 3 Mar 2026 16:23:31 -0500 Subject: [PATCH] Add prompt flush hack for `bash` on macos as well.. --- tractor/devx/debug/_sigint.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tractor/devx/debug/_sigint.py b/tractor/devx/debug/_sigint.py index c2a16f62..a97dacd1 100644 --- a/tractor/devx/debug/_sigint.py +++ b/tractor/devx/debug/_sigint.py @@ -21,6 +21,7 @@ cancellation during REPL interaction. ''' from __future__ import annotations +import platform from typing import ( TYPE_CHECKING, ) @@ -49,6 +50,7 @@ if TYPE_CHECKING: log = get_logger() +_is_macos: bool = platform.system() == 'Darwin' _ctlc_ignore_header: str = ( 'Ignoring SIGINT while debug REPL in use' ) @@ -300,6 +302,11 @@ def sigint_shield( # XXX: yah, mega hack, but how else do we catch this madness XD if ( repl.shname == 'xonsh' + or ( + repl.shname == 'bash' + and + _is_macos + ) ): flush_status += ( '-> ALSO re-flushing due to `xonsh`..\n'