RosettaCodeData/Task/Terminal-control-Cursor-movement/Forth/terminal-control-cursor-movement-2.fth
2023-07-01 13:44:08 -04:00

8 lines
465 B
Forth

( move the cursor one position to the left) 1 <CUB>
( move the cursor one position to the right) 1 <CUF>
( move the cursor up one line ) 1 <CUU>
( move the cursor down one line) 1 <CUD>
( move the cursor to the beginning of the line) 1 <CHA>
( move the cursor to the end of the line ) 80 <CHA>
( move the cursor to the top left corner of the screen) 1 1 <CUP>
( move the cursor to the bottom right corner of the screen) 80 24 <CUP>