joeyespo / grip

Preview GitHub README.md files locally before committing them.
MIT License
6.42k stars 423 forks source link

EOF/EOT gets surpressed when retreiving from stdin #337

Open glibg10b opened 3 years ago

glibg10b commented 3 years ago
$ grip -
 * Serving Flask app "grip.app" (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: off
 * Running on http://localhost:6419/ (Press CTRL+C to quit)
 test

Ctrl+Z:

      0 [sig] bash 892! sigpacket::process: Suppressing signal 18 to win32 process (pid 1844)

Ctrl+D does nothing. There is no way to enter EOF, so it's impossible to retrieve input from the user with $ grip -. $ echo test | grip - does work correctly, however.

This could just be a Git Bash bug, but I think you should add an alternative way to pass EOF.