in reply to Curses formatting
Your problem is that you're trying to intermix plain vanilla IO (printf) with curses. Curses expects you to do all output through it so that it can maintain a map of what's supposed to be on the screen. You'll want to use addstr rather than printing (although you certainly can use sprintf to format the text you display).
The cake is a lie.
The cake is a lie.
The cake is a lie.
|
|---|