most icon indicating copy to clipboard operation
most copied to clipboard

`Ctrl+G` kills `bat` and messes up terminal

Open notramo opened this issue 1 year ago • 1 comments

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.

notramo avatar Apr 30 '23 14:04 notramo

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

bfeitknecht avatar Mar 24 '24 08:03 bfeitknecht