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