diff options
Diffstat (limited to 'src/terminal.zig')
| -rw-r--r-- | src/terminal.zig | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/terminal.zig b/src/terminal.zig index a0337ce7..b7872d4e 100644 --- a/src/terminal.zig +++ b/src/terminal.zig @@ -1149,11 +1149,13 @@ pub fn greeting(pane: *const Pane) enum { wait, now, never } { return if (promptInputEmpty(pane)) .now else .never; } +/// At a prompt's input: on the alternate screen too, where a program killed +/// there (htop, `sig KILL`) left the emulator and the shell then drew its +/// prompt, marks and all. A full-screen program draws no prompt marks. pub fn promptInputReady(pane: *const Pane) bool { if (comptime !enabled) return false; const state = pane.terminal orelse return false; - return state.vt.screens.active_key != .alternate and - state.vt.screens.active.cursor.semantic_content == .input; + return state.vt.screens.active.cursor.semantic_content == .input; } pub const CommandOutput = struct { |
