Modifier and Type | Class | Description |
---|---|---|
protected class |
Nano.Buffer |
|
protected static class |
Nano.CursorMovement |
|
protected static class |
Nano.Operation |
|
protected static class |
Nano.Parser |
|
protected static class |
Nano.PatternHistory |
|
static class |
Nano.SyntaxHighlighter |
|
protected static class |
Nano.WriteFormat |
|
protected static class |
Nano.WriteMode |
Constructor | Description |
---|---|
Nano(Terminal terminal,
File root) |
|
Nano(Terminal terminal,
Path root) |
|
Nano(Terminal terminal,
Path root,
Options opts) |
|
Nano(Terminal terminal,
Path root,
Options opts,
ConfigurationPath configPath) |
Modifier and Type | Method | Description |
---|---|---|
protected void |
bindKeys() |
|
protected List<AttributedString> |
computeFooter() |
|
String |
getTitle() |
|
protected void |
handle(Terminal.Signal signal) |
|
void |
open(String... files) |
|
void |
open(List<String> files) |
|
void |
run() |
|
void |
setRestricted(boolean restricted) |
|
static String[] |
usage() |
protected final Terminal terminal
protected final Display display
protected final BindingReader bindingReader
protected final Size size
protected final Path root
protected final int vsusp
protected KeyMap<Nano.Operation> keys
public String title
public boolean printLineNumbers
public boolean wrapping
public boolean smoothScrolling
public boolean mouseSupport
public boolean oneMoreLine
public boolean constantCursor
public boolean quickBlank
public int tabs
public String brackets
public String matchBrackets
public String punct
public String quoteStr
protected final List<Nano.Buffer> buffers
protected int bufferIndex
protected Nano.Buffer buffer
protected String message
protected String errorMessage
protected int nbBindings
protected LinkedHashMap<String,String> shortcuts
protected String editMessage
protected final StringBuilder editBuffer
protected boolean searchCaseSensitive
protected boolean searchRegexp
protected boolean searchBackwards
protected String searchTerm
protected int matchedLength
protected Nano.PatternHistory patternHistory
protected Nano.WriteMode writeMode
protected boolean mark
protected boolean highlight
protected boolean readNewBuffer
public Nano(Terminal terminal, Path root, Options opts, ConfigurationPath configPath)
public static String[] usage()
public void setRestricted(boolean restricted)
setRestricted
in interface Editor
public void open(String... files) throws IOException
IOException
public void open(List<String> files) throws IOException
open
in interface Editor
IOException
public void run() throws IOException
run
in interface Editor
IOException
public String getTitle()
protected List<AttributedString> computeFooter()
protected void handle(Terminal.Signal signal)
protected void bindKeys()
Copyright © 2020. All rights reserved.