Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Key mappings #45

Open
lm8 opened this issue Sep 22, 2022 · 4 comments
Open

Key mappings #45

lm8 opened this issue Sep 22, 2022 · 4 comments

Comments

@lm8
Copy link

lm8 commented Sep 22, 2022

I downloaded nano-win_10050_v6.4-11-gca57881b7.7z to try it out. Some of the key mappings to commands don't seem to be working. For instance, I can't get ctrl-/ Go to Line to do anything. Also noticed when I call up the help and use the page up key, it fails. Works okay outside of help. When I try nano on a Linux system, page up works as expected at the help screen.

I have my own build of nano from the original source that uses pdcurses in place of ncurses. It's having similar problems with certain key commands and mouse actions. I'm investigating patching parts of the issue now. Thought I had the mouse working at one point, but think it only works properly with pdcurses and the SDL backend. It works intermittently with pdcurses in Win32 console mode. UTF-8 mode might work partially with pdcurses and SDL backend since there's support for drawing UTF-8 characters with SDL2. Native language support works on my version, but you have to set the environment variable for LANG to change the language. It looks for languages files in a location relative to the executable rather than hard-coding a location.

You did a really nice job porting nano and maintaining it with the latest nano updates. There's a lot of work involved in it especially after updates.

@lhmouse
Copy link
Owner

lhmouse commented Sep 26, 2022

nano uses wgetch() to read console inputs so you may try checking what it returns. This requires a little knowledge about curses libraries.

@lm8
Copy link
Author

lm8 commented Sep 26, 2022

Working on checking what wgetch returns now. There's also a nice testcurs program that comes with pdcurses that can show what keys are pressed and what codes are returned for those keys.

@lhmouse
Copy link
Owner

lhmouse commented Oct 2, 2022

You may try the legacy console. In legacy console on my Windows 10 machine, both Page Up and Page Down work on help page. However Ctrl-/ still does not work, without a response.

This is not the only issue about the 'new' console. GDB in TUI mode crashes in the new console, blowing up the entire window with all processes in it.

@lm8
Copy link
Author

lm8 commented Oct 2, 2022

Thanks for the information.

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

No branches or pull requests

2 participants