I need to disable the task keys for both Linux and windows using a C program . I tried using the windows.h
but as the name states it is not working for the Linux and in case of windows also its not working properly . I tried to do this using the GetAsyncKeyState
function but still have no clues to Linux key handling. As I am new to system code I have referred to following but unable to get through the issue.
So please suggest some solution that could be helpful in handling keys (Enable/Disable) on both platforms (Linux/Windows) ?
And is it okay to use key-scan codes and ASCII codes for the Key event handling?
I have already referred to :
Disable task switching keys with c++
Disable keyboard keys when the console of c Run using c or c++