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

PDCurses does not restore some console mode flags correctly on Windows #53

Closed
vyv03354 opened this issue Feb 20, 2019 · 0 comments
Closed

Comments

@vyv03354
Copy link
Contributor

Since GetConsoleMode does not return ENABLE_EXTENDED_FLAGS (0x0080),

GetConsoleMode(pdc_con_in, &old_console_mode);
SetConsoleMode(pdc_con_in, SP->_trap_mbe ?
               (ENABLE_MOUSE_INPUT|0x0088) : (pdc_quick_edit|0x0088));
SetConsoleMode(pdc_con_in, old_console_mode);

will not preserve ENABLE_INSERT_MODE and ENABLE_QUICK_EDIT_MODE (if SP->_trap_mbe is true).

I hit this bug when I used chistedit curses UI that Mercurial 4.9 introduced. Everytime I run hg histedit, I have to re-enable Insert mode and QuickEdit mode from the Properties dialog.

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

1 participant