--- from: http://rosettacode.org/wiki/Terminal_control/Cursor_positioning note: Terminal control