Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

"F10" issue in Gnome Terminal #3

Open
lucatrv opened this issue Jun 21, 2018 · 5 comments
Open

"F10" issue in Gnome Terminal #3

lucatrv opened this issue Jun 21, 2018 · 5 comments

Comments

@lucatrv
Copy link

lucatrv commented Jun 21, 2018

Gnome Terminal captures "F10" instead of passing it to the shell (shortcut to open "File" menu). I suggest to change the default key binding for help, maybe "Ctrl-F1"?

@genotrance
Copy link
Owner

A good cross platform default is hard, I'll check it out.

For now you could remap the keys using keymap.txt.

@lucatrv
Copy link
Author

lucatrv commented Jun 22, 2018

After some more thinking, IMHO the best solution would be to use "Ctrl-Shift-FX" keystrokes. As you may know, in Gnome Terminal (but I believe also in most Linux terminals) you can copy / paste with "Ctrl-Shift-C" / "Ctrl-Shift-V". Moreover "Ctrl-Shift-FX" keystrokes should be available in most (or all) platforms.

@genotrance
Copy link
Owner

Actually Ctrl-Shift-FX gives me the same keycode as Ctrl-FX. Unfortunately, avoiding ncurses means snip is much simpler to build and distribute but limited in recognizing every single key combo. You can see the keymaps by OS here: https://github.com/genotrance/snip/tree/master/src/snip/term

I'd use termbox but it is not supported on Windows yet.

@lucatrv
Copy link
Author

lucatrv commented Jun 25, 2018

Why you are not considering nim-ncurses?

@genotrance
Copy link
Owner

Snip is aimed at being light weight and portable. Getting every user of snip to download an ncurses DLL is overkill. It's easier on Linux with package managers but more tedious for Windows.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants