Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,28 @@ default void enableAlternateScreen(boolean enable) {
*/
void setVT100LineWrapping(boolean enable);

/**
* Auto wrap mode (DECAWM, CSI ? 7 h/l), on by default. Off, a character
* written at the right margin replaces the one there and the cursor stays.
*/
void setAutoWrap(boolean enable);

/**
* @return the first line of the scroll region, in screen lines
*/
int getScrollRegionTop();

/**
* @return the last line of the scroll region, in screen lines
*/
int getScrollRegionBottom();

/**
* Fills every cell of the screen with the character in the default rendition,
* as the screen alignment test (DECALN, ESC # 8) does. The cursor does not move.
*/
void fillScreen(char c);

/**
* @return whether VT100 line wrapping mode is enabled
*/
Expand Down Expand Up @@ -271,4 +293,16 @@ default void enableAlternateScreen(boolean enable) {
* @param n number of characters to replace
*/
void eraseCharacters(int n);

/**
* @return whether the cursor is on the last column with a wrap pending: the
* next character goes to the next line
*/
boolean isWrapPending();

/**
* Puts back a pending wrap, as restoring a saved cursor (DECRC) does; it only
* holds with the cursor on the last column.
*/
void setWrapPending(boolean pending);
}
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,39 @@ public boolean isVT100LineWrapping() {
return fBackend.isVT100LineWrapping();
}

@Override
public void setAutoWrap(boolean enable) {
fWriter.println("setAutoWrap(" + enable + ")"); //$NON-NLS-1$ //$NON-NLS-2$
fBackend.setAutoWrap(enable);
}

@Override
public int getScrollRegionTop() {
return fBackend.getScrollRegionTop();
}

@Override
public int getScrollRegionBottom() {
return fBackend.getScrollRegionBottom();
}

@Override
public boolean isWrapPending() {
return fBackend.isWrapPending();
}

@Override
public void setWrapPending(boolean pending) {
fWriter.println("setWrapPending(" + pending + ")"); //$NON-NLS-1$ //$NON-NLS-2$
fBackend.setWrapPending(pending);
}

@Override
public void fillScreen(char c) {
fWriter.println("fillScreen(" + c + ")"); //$NON-NLS-1$ //$NON-NLS-2$
fBackend.fillScreen(c);
}

@Override
public void setInsertMode(boolean enable) {
fWriter.println("setInsertMode(" + enable + ")"); //$NON-NLS-1$ //$NON-NLS-2$
Expand Down
Loading
Loading