jmacdonald / amp

A complete text editor for your terminal.
https://amp.rs
Other
3.72k stars 106 forks source link

WSL - No keyboard functionality at all #65

Open Apple-Lion opened 6 years ago

Apple-Lion commented 6 years ago

Cargo compiled 0.3.3 and the resulting executable will open files, display files, or when opened with only its name, display the opener; however, no keyboard support works. No mode changes, nothing.

Thoughts?

jmacdonald commented 6 years ago

It's possible that it's the rustbox library causing issues, which is a Rust wrapper for the C-based termbox library; it handles all of the terminal interaction. Amp has an alternative terminal implementation based on termion, which is built entirely in Rust. I've created a termion branch for you to try. It's not ready for production use yet, but I'm curious to see if it'll solve your issue; pull and build that branch to see, when you have a chance.

Apple-Lion commented 6 years ago

I tried compiling in WSL with the termion branch with similar results. I may not be the most educated, or WSL may not be the most complete experience either.

cjthompson commented 5 years ago

I compiled the termion branch as of Nov 22 and it works correctly, as far as I can tell, on WSL.

TheJare commented 5 years ago

I think WSL added support for SIGIO in their spring update, that may be the reason it works now.