vlymar / flan

better man
3 stars 0 forks source link

Ctrl-c (SIGINT) temporarily disrupts zshell #3

Open vlymar opened 6 years ago

vlymar commented 6 years ago

Repro steps:

With zshell:

  1. Open a flanpage, e.g. flan ls
  2. Send a kill signal to flan. Doesn't seem to matter which signal (e.g. sigint via ctrl-c, sigterm via kill, etc).
  3. Interact with terminal (hit your enter key, type anything, etc).

Issue

Immediately after flan closes, you'll see the previously displayed flanpage and your shell prompt printed right below it. When you type anything in, the flanpage will disappear and you'll see your shell history.

The same thing exact happens with man, when you send a kill signal to it. The difference is man doesn't recognize Ctrl-c, and flan does.

Expected behavior

Either flan should ignore Ctrl-c (like man), or Ctrl-c should cleanly exit (no future interaction with the shell should cause anything weird to happen).

vlymar commented 6 years ago

update - I tested and couldn't reproduce this with bash