C Programming
Quick intro to ncurses
by armpit on Feb.03, 2010, under C Programming, Development, Unix
Curses is a pun on the name “cursor optimization”, it is a library that forms a wrapper for working with raw terminal codes. It’s flexible and efficient API provides functions to move the cursor, create windows, produce colors, play with mouse, and more. By using curses we do not need to bother worrying about the capabilities of the terminal we are running on.
For this demonstration we will build a simple ‘Keycode Scanner’. To show off a bit, we will add a realtime clock display as well. (continue reading…)
IPC Message Queues on *nix
by armpit on Feb.01, 2010, under C Programming, Development, Unix
Message queues are handy. A process can create a new queue or connect to an existing one. This allows multiple processes to share the same queue. By default messages are taken off the queue in the same order as they are put on, but there are ways to retrieve messages before they reach the front of the queue. (continue reading…)