public class Less extends Object
Modifier and Type | Class | Description |
---|---|---|
protected static class |
Less.Operation |
Constructor | Description |
---|---|
Less(Terminal terminal,
Path currentDir) |
|
Less(Terminal terminal,
Path currentDir,
Options opts) |
|
Less(Terminal terminal,
Path currentDir,
Options opts,
ConfigurationPath configPath) |
Modifier and Type | Method | 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) |
|
Less |
tabs(List<Integer> tabs) |
|
static String[] |
usage() |
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
protected String syntaxName
protected final Terminal terminal
protected final Display display
protected final BindingReader bindingReader
protected final Path currentDir
protected int sourceIdx
protected BufferedReader reader
protected KeyMap<Less.Operation> keys
protected int firstLineInMemory
protected List<AttributedString> lines
protected int firstLineToDisplay
protected int firstColumnToDisplay
protected int offsetInLine
protected String message
protected String errorMessage
protected final StringBuilder buffer
protected final Map<String,Less.Operation> options
protected int window
protected int halfWindow
protected int nbEof
protected Nano.PatternHistory patternHistory
protected String pattern
protected String displayPattern
protected final Size size
public Less(Terminal terminal, Path currentDir, Options opts, ConfigurationPath configPath)
public static String[] usage()
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
- if the thread has been interrupedCopyright © 2020. All rights reserved.