VT100 Wrap process

Normally, when outputting a single character, following processes are performed:

1. Output a character at current cursor position.
2. Move cursor position to next cell.
When cursor is at the end of a line, If this behavior is applied, result is as follows (When autowrap mode is enabled):
1. Output a character at current cursor position.
2. If current cursor position is at the bottom (no next line), scroll one line to make blank line.
3. Moves cursor to the beginning of next line.

Some terminals actually behave this way. This behavior makes it difficult to output character at the lower right corner of the screen.

Therefore, when the cursor is at the end of a line, VT100 has the following character output behavior:

1. Output characters at current cursor position (end of line).
2. Cursor position is unchanged at the end of the line.

Output one character in this state:

3. If current cursor position is at the bottom (no next line), scroll one line to make blank line.
4. Moves cursor to the beginning of next line.
5. Output a character at current cursor position.
6. Move cursor position to next cell.

Delay automatic line break when outputting character following character at the end of the line.