most
most copied to clipboard
`Ctrl+G` kills `bat` and messes up terminal
When most
is launched from bat
automatically, the Ctrl+G
sequence doesn't work as intended, but instead kills most
and bat
, and messes up the terminal. Additionally, it sets the interrupt sequence from Ctrl+C
to Ctrl+G
.
tested on:
- Machine: MacBook Pro (M2)
- Serial Number: M77K97QL9N
- operating system: MacOS Sonoma 14.4 (23E214)
steps to replicate:
-
bat --pager most ~/.profile
- press
Ctrl+G
error message:
Fatal Error: Most is not in the terminal's process group.
intended behavior:
doesn't crash
probable cause:
Ctrl+G
suspends the most
process, which doesn't work when invoked as bat
pager?
hot to fix wrong interrupt sequence:
- exec $SHELL