ansi, vt100,... terminal auto wrap
Posted: Wed Apr 27, 2011 4:18 am
Hi, I would like to implement ansi terminal, but have troubles understanding how should some featuers work. Can you please explain this?
What is right margin? Screen is 80 characters wide (0 - 79). Why should character appear somewhere else than on cursor location? I'v always thought so cursor should point to location where next character appears and auto wrap should deal with "where to place cursor after received character was displayed". Thanks.Auto Wrap
This mode selects where a received character will appear when the cursor is at the right margin. Select auto wrap by using the following sequences.
NOTE: Regardless of the auto wrap SET-UP feature selection, the tab character never moves the cursor to the next line.
Auto Wrap Mode (DECAWM)
ESC [ ? 7 h
033 133 077 067 150
Set selects auto wrap. Any display characters received when cursor is at right margin appear on next line. The display scrolls up if cursor is at end of scrolling region.
ESC [ ? 7 l
033 133 077 067 154
Reset turns auto wrap off. Display characters received when cursor is at right margin replace previously displayed character.