Some improvements to the curses simulator. Added integer variable substitutor (very experimental)