org.prelle.ansi.commands.CursorHorizontalAbsolute 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;
/**
* The active position is moved to the n-th character position of the active line.
*/
public class CursorHorizontalAbsolute extends ControlSequenceFragment {
//-------------------------------------------------------------------
public CursorHorizontalAbsolute() {
super(0x47, "CHA", Level.ANSI);
}
//-------------------------------------------------------------------
public CursorHorizontalAbsolute(int value) {
this();
parameter.clear();
parameter.add(value);
}
//-------------------------------------------------------------------
public int getValue() {
int value = parameter.get(0);
return (value==0)?1:value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy