Commit 0b39b478 authored by deuce's avatar deuce
Browse files

Yet another massive refactor...

Now, the window() is set to the curr coordinates.
Use generic functions for implicit and relative movement.
Make the scrolling region behave much more like the DEC source.
parent 4981b140
This diff is collapsed.
......@@ -407,9 +407,8 @@ CSI Pn E (CNL)
Cursor Next Line
Defaults: Pn = 1
Moves the cursor to the first column of the line Pn down from the
current position. Moving past the bottom of the screen scrolls the
screen up the remaining number of lines filling newly added lines
with the current attribute.
current position. Attempting to move past the screen boundaries
stops the cursor at the screen boundary.
SOURCE: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-048.pdf
......@@ -474,7 +473,8 @@ CSI Pn L (IL)
Defaults: Pn = 1
Inserts Pn lines at the current line position. The current line and
those after it are scrolled down and the new empty lines are filled
with the current attribute.
with the current attribute. If the cursor is not currently inside
the scrolling margins, has no effect.
SOURCE: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-048.pdf
......@@ -484,6 +484,8 @@ CSI Pn M (DL)
Deletes the current line and the Pn - 1 lines after it scrolling the
first non-deleted line up to the current line and filling the newly
empty lines at the end of the screen with the current attribute.
If the cursor is not currently inside the scrolling margins, has no
effect.
If "ANSI" Music is fully enabled (CSI = 2 M), performs "ANSI" music
instead.
See "ANSI" MUSIC section for more details.
......@@ -518,7 +520,8 @@ CSI Pn P (DCH)
Deletes the character at the current position by shifting all
characters from the current column + p1 left to the current column.
Opened blanks at the end of the line are filled with the current
attribute.
attribute. If the cursor is not currently inside the scrolling
margins, has no effect.
SOURCE: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-048.pdf
......@@ -560,6 +563,7 @@ CSI Pn X (ECH)
Erase p1 characters starting at the current character. Will not erase
past the end of line.
Erased characters are set to the current attribute.
This can erase across scroll margins.
SOURCE: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-048.pdf
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment