Program without window

Hi... I'm trying to make a program that works with no open window or terminal in Ubuntu, using C++...

What I'd like the program to do is register a keypress event and act in consequence, but without the user noticing it...

I tried making a dameon, using the ncurses library, but daemons don't allow user interaction...

Any suggestions??
Include windows.h, and use the FreeConsole() function before you do anything else.
Linux doesn't use the <windows.h> API.

What you are trying to do is not very kosher. You will have to look through your window manager's documentation to figure out how to do that. Lower level xlib handling is more obnoxious, but possible:

http://tronche.com/gui/x/xlib/

Good luck.
Topic archived. No new replies allowed.