Open pallxk opened 1 month ago
Some more findings on this:
macchina < /dev/null
hangs with 100% CPU usage;macchina < /dev/null > file
works;backend.get_cursor_position()
, which calls crossterm::cursor::position()
.Now it seems like a crossterm bug...
Related crossterm bug at https://github.com/crossterm-rs/crossterm/issues/828
Workaround for macchina users on macOS:
macchina < /dev/null > >(cat)
Thanks for sharing that workaround, we'll upgrade to a non-affected version of crossterm when that issue is eventually addressed.
Describe the bug Macchina does not work without /dev/stdin on macOS. I've also tested on Arch Linux x86_64 and Arch Linux aarch64, they both work without /dev/stdin.
To Reproduce Steps to reproduce the behavior:
macchina < /dev/null
Expected behavior Macchina runs correctly.
Actual behavior It hangs and cannot exit with CTRL-C.
Usage Scenario I put macchina into my .bashrc script, and would like it to not consume /dev/stdin, so that
Screenshots
macchina --doctor
outputSystem Information
I've also tested with macchina 6.1.8, it's the same issue for me.