NCURSES on CentOS: how to react on CTRL+DEL?

AsmGuru62

New Member
Joined
Jul 15, 2022
Messages
1
Reaction score
1
Credits
16
Hi everyone!
My 1st post here.

So, I coded a program using NCURSES library (version 5.9) -- it is a text editor.
Please, do not laugh! I know there is VIM and all that... This is kind of specialized editor -- a stenography tool.
I tried functions, like raw() and cbreak() to make all key codes to come to my code -- no echo.

I am having weird problem with CTRL+DEL combination -- the character code from getch() for this combo is same as for DEL key.
It is strange, because CTRL+BACKSPACE and BACKSPACE have different character codes.
Why would DEL key not be the same? Is CTRL+DEL some kind of reserved combination for Linux (or CentOS)?
Any help? Where should I dig?

Thanks.
 

Members online


Top