I wish to write a program in C++ that will run a process in the background and listen for certain key-combinations (at which point it will preform various actions). I know how to create processes, but I am at a loss for how to listen for which keys are being pressed. I noticed that /dev/input has several files which respond to keyboard strokes, but I do not know how to read them in a C++ program or if there is a better way to do this.