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