- java.lang.Object
-
- org.jline.builtins.Less
-
public class Less extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
Less.Operation
-
Field Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
checkInterrupted()
This is for long running commands to be interrupted by ctrl-cvoid
handle(Terminal.Signal signal)
protected void
openSource()
void
run(List<Source> sources)
void
run(Source... sources)
Less
tabs(List<Integer> tabs)
static String[]
usage()
-
-
-
Field Detail
-
quitAtSecondEof
public boolean quitAtSecondEof
-
quitAtFirstEof
public boolean quitAtFirstEof
-
quitIfOneScreen
public boolean quitIfOneScreen
-
printLineNumbers
public boolean printLineNumbers
-
quiet
public boolean quiet
-
veryQuiet
public boolean veryQuiet
-
chopLongLines
public boolean chopLongLines
-
ignoreCaseCond
public boolean ignoreCaseCond
-
ignoreCaseAlways
public boolean ignoreCaseAlways
-
noKeypad
public boolean noKeypad
-
noInit
public boolean noInit
-
syntaxName
protected String syntaxName
-
terminal
protected final Terminal terminal
-
display
protected final Display display
-
bindingReader
protected final BindingReader bindingReader
-
currentDir
protected final Path currentDir
-
sourceIdx
protected int sourceIdx
-
reader
protected BufferedReader reader
-
keys
protected KeyMap<Less.Operation> keys
-
firstLineInMemory
protected int firstLineInMemory
-
lines
protected List<AttributedString> lines
-
firstLineToDisplay
protected int firstLineToDisplay
-
firstColumnToDisplay
protected int firstColumnToDisplay
-
offsetInLine
protected int offsetInLine
-
message
protected String message
-
errorMessage
protected String errorMessage
-
buffer
protected final StringBuilder buffer
-
options
protected final Map<String,Less.Operation> options
-
window
protected int window
-
halfWindow
protected int halfWindow
-
nbEof
protected int nbEof
-
patternHistory
protected Nano.PatternHistory patternHistory
-
pattern
protected String pattern
-
displayPattern
protected String displayPattern
-
size
protected final Size size
-
-
Method Detail
-
usage
public static String[] usage()
-
handle
public void handle(Terminal.Signal signal)
-
run
public void run(Source... sources) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
run
public void run(List<Source> sources) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
openSource
protected void openSource() throws IOException
- Throws:
IOException
-
checkInterrupted
public static void checkInterrupted() throws InterruptedException
This is for long running commands to be interrupted by ctrl-c- Throws:
InterruptedException
- if the thread has been interruped
-
-