peco: peco should accept interrupts while reading from stdin (e.g. empty stdin or slow source)

sleep 10 | peco

I can’t exit with Ctr+C, Ctr+Z, Ctr+D

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 24 (12 by maintainers)

Commits related to this issue

Most upvoted comments

@mattn がESPしてくれましたが、問題は2つあるようです。

  • 一つは空のファイルをパイプで食わせるとエラーで死ぬ問題。
  • もう一つは入力が無いけど閉じられてもいない出力をパイプで食わせるとpecoが何の操作も受け付けてくれなくなり、終了もできなくなってしまう問題です。

僕が時々ハマるのは後者のフリーズする問題です。この場合別プロセスからkillしないと復帰できないので困ります。