Command-line curses based advanced calculator