#Detecting Shift, Alt, and Ctrl Key Presses

12 messages · Page 1 of 1 (latest)

wintry gladeBOT
#

When your question is answered use !solved or the button below to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

hardy gazelle
#

I need Linux support

stuck hemlock
#

So it's mildly OS dependent. From what I could tell, on UNIX systems, <termios.h> library has a bunch of functions to interact with terminal settings.

There is apparently an option for "raw" input, causing the program to read each character as typed as opposed to waiting for the enter key and parsing the line as a whole. Then stuff like the arrow keys or a backspace would result in special character combinations.

I've not used this before, but that could be a start for your own research

hardy gazelle
stuck hemlock
hardy gazelle
wintry gladeBOT
#

@hardy gazelle Has your question been resolved? If so, type !solved :)

hardy gazelle
#

!solved

wintry gladeBOT
#

Thank you and let us know if you have any more questions!

This thread is now set to auto-hide after an hour of inactivity

wintry gladeBOT
# wintry glade

Thank you and let us know if you have any more questions!

This thread is now set to auto-hide after an hour of inactivity