org.prelle.ansi.commands.DECSelectActiveStatusDisplay Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of libansi Show documentation
Show all versions of libansi Show documentation
Inject or recevie ANSI control codes from streams
The newest version!
package org.prelle.ansi.commands;
import org.prelle.ansi.ControlSequenceFragment;
import org.prelle.ansi.Level;
/**
* DECSASD selects whether the terminal sends data to the main display or the status line.
* Available in: VT Level 4 mode only
* Default: Main display
*
* @see VT510 Docs
*/
public class DECSelectActiveStatusDisplay extends ControlSequenceFragment {
public static enum Mode {
MAIN_DISPLAY,
STATUS_LINE,
}
//-------------------------------------------------------------------
public DECSelectActiveStatusDisplay() {
super("$", 0x7D, "DECSASD", Level.VT400);
}
//-------------------------------------------------------------------
public DECSelectActiveStatusDisplay(Mode value) {
this();
this.parameter.clear();
this.parameter.add(value.ordinal());
}
//-------------------------------------------------------------------
public Mode getValue() {
int value = parameter.get(0);
return Mode.values()[value];
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy