chrys87 / fenrir

An TTY screenreader for Linux.
GNU Lesser General Public License v3.0
47 stars 13 forks source link

Complete pty/pty2 keyboard layouts #57

Open webczat opened 3 years ago

webczat commented 3 years ago

Hi, I am using pty mode because tried to run fenrir on termux/android. I cannot do it directly, but it works well on proot/archlinux and likely other distros, however the only mode I can use there is pty mode. The problem is the keyboard layout is incomplete. It would be nice if it were completed for other people like me who have to use full pty mode without evdev.

chrys87 commented 3 years ago

Howdy,

well, this is quite a hard task, as fenrir gets its shortcuts from escape sequences then. there is no "fenrir" key. So conflicting shortcuts with an application is more likely. as i dont use an screenreader i dont know what would be logical key combinations. contributions are welcome.

webczat commented 3 years ago

note that it's not the only thing doing that, for example things like screen and tmux have a single escape character, but if an app uses the shortcut you can send it to the app, like by pressing ctrl+a twice to send ctrl+a to app. In case of fenrir that generally does not have such escape sequence, I'd argue that it could be nice to have some bypass option, including one that holds until it's manually released, so that such conflicts can be resolved. You are right that apps can use the same key combinations. I am not necessarily a good person to contribute keyboard navigation because the reason I use PTY mode is so specific so that my usage of it, and of fenrir in general, is actually quite rare, mostly in emergency situations.

chrys87 commented 3 years ago

Fenrir has an bypass mode and an bypass key.

webczat commented 3 years ago

yeah, that's nice.

pitermach commented 3 years ago

Just stumbled across this issue while trying to get Fenrir going on Mac, and getting far enough that it talks but basically no keys work, and I'm guessing this is why. Since you can't get the lower level Linux screen and input drivers going for obvious reasons, this is probably a much more compelling use case as to why this would be really helpful

chrys87 commented 3 years ago

Just stumbled across this issue while trying to get Fenrir going on Mac, and getting far enough that it talks but basically no keys work, and I'm guessing this is why. Since you can't get the lower level Linux screen and input drivers going for obvious reasons, this is probably a much more compelling use case as to why this would be really helpful

howdy pitermach,

sorry, no this is an different reason. The author of the Ticket asks for a more complete byte type layout for fenrir (but existing works), for you it does not seem to work overall.

fenrir already contains an non linux terminal emulation by using ptyDriver for input driver. You can just quick use this by parameter e: fenrir -e Note: not capital e. This uses pty (Terminal emulation) and input handling. If this still happens for you, please create a debug file and create a new Ticket.