public class Less extends Object
Modifier and Type | Field and Description |
---|---|
protected BindingReader |
bindingReader |
protected StringBuilder |
buffer |
boolean |
chopLongLines |
protected Display |
display |
protected int |
firstColumnToDisplay |
protected int |
firstLineInMemory |
protected int |
firstLineToDisplay |
protected int |
halfWindow |
boolean |
ignoreCaseAlways |
boolean |
ignoreCaseCond |
protected KeyMap<org.jline.builtins.Less.Operation> |
keys |
protected List<AttributedString> |
lines |
protected String |
message |
protected int |
nbEof |
protected int |
offsetInLine |
protected Map<String,org.jline.builtins.Less.Operation> |
options |
protected String |
pattern |
boolean |
printLineNumbers |
boolean |
quiet |
boolean |
quitAtFirstEof |
boolean |
quitAtSecondEof |
protected BufferedReader |
reader |
protected Size |
size |
protected int |
sourceIdx |
protected List<Source> |
sources |
int |
tabs |
protected Terminal |
terminal |
boolean |
veryQuiet |
protected int |
window |
Modifier and Type | Method and Description |
---|---|
static void |
checkInterrupted()
This is for long running commands to be interrupted by ctrl-c
|
void |
handle(Terminal.Signal signal) |
protected void |
openSource() |
void |
run(List<Source> sources) |
void |
run(Source... sources) |
public boolean quitAtSecondEof
public boolean quitAtFirstEof
public boolean printLineNumbers
public boolean quiet
public boolean veryQuiet
public boolean chopLongLines
public boolean ignoreCaseCond
public boolean ignoreCaseAlways
public int tabs
protected final Terminal terminal
protected final Display display
protected final BindingReader bindingReader
protected int sourceIdx
protected BufferedReader reader
protected KeyMap<org.jline.builtins.Less.Operation> keys
protected int firstLineInMemory
protected List<AttributedString> lines
protected int firstLineToDisplay
protected int firstColumnToDisplay
protected int offsetInLine
protected String message
protected final StringBuilder buffer
protected int window
protected int halfWindow
protected int nbEof
protected String pattern
protected final Size size
public Less(Terminal terminal)
public void handle(Terminal.Signal signal)
public void run(Source... sources) throws IOException, InterruptedException
IOException
InterruptedException
public void run(List<Source> sources) throws IOException, InterruptedException
IOException
InterruptedException
protected void openSource() throws IOException
IOException
public static void checkInterrupted() throws InterruptedException
InterruptedException
Copyright © 2019. All rights reserved.