- java.lang.Object
-
- org.jline.builtins.Nano
-
-
Nested Class Summary
Nested Classes 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
Java implementation of nanorc highlighterprotected static class
Nano.WriteFormat
protected static class
Nano.WriteMode
-
Field Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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()
-
-
-
Field Detail
-
terminal
protected final Terminal terminal
-
display
protected final Display display
-
bindingReader
protected final BindingReader bindingReader
-
size
protected final Size size
-
root
protected final Path root
-
vsusp
protected final int vsusp
-
keys
protected KeyMap<Nano.Operation> keys
-
title
public String title
-
printLineNumbers
public boolean printLineNumbers
-
wrapping
public boolean wrapping
-
smoothScrolling
public boolean smoothScrolling
-
mouseSupport
public boolean mouseSupport
-
oneMoreLine
public boolean oneMoreLine
-
constantCursor
public boolean constantCursor
-
quickBlank
public boolean quickBlank
-
tabs
public int tabs
-
brackets
public String brackets
-
matchBrackets
public String matchBrackets
-
punct
public String punct
-
quoteStr
public String quoteStr
-
buffers
protected final List<Nano.Buffer> buffers
-
bufferIndex
protected int bufferIndex
-
buffer
protected Nano.Buffer buffer
-
message
protected String message
-
errorMessage
protected String errorMessage
-
nbBindings
protected int nbBindings
-
shortcuts
protected LinkedHashMap<String,String> shortcuts
-
editMessage
protected String editMessage
-
editBuffer
protected final StringBuilder editBuffer
-
searchCaseSensitive
protected boolean searchCaseSensitive
-
searchRegexp
protected boolean searchRegexp
-
searchBackwards
protected boolean searchBackwards
-
searchTerm
protected String searchTerm
-
matchedLength
protected int matchedLength
-
patternHistory
protected Nano.PatternHistory patternHistory
-
writeMode
protected Nano.WriteMode writeMode
-
mark
protected boolean mark
-
highlight
protected boolean highlight
-
readNewBuffer
protected boolean readNewBuffer
-
-
Method Detail
-
usage
public static String[] usage()
-
setRestricted
public void setRestricted(boolean restricted)
- Specified by:
setRestricted
in interfaceEditor
-
open
public void open(String... files) throws IOException
- Throws:
IOException
-
open
public void open(List<String> files) throws IOException
- Specified by:
open
in interfaceEditor
- Throws:
IOException
-
run
public void run() throws IOException
- Specified by:
run
in interfaceEditor
- Throws:
IOException
-
getTitle
public String getTitle()
-
computeFooter
protected List<AttributedString> computeFooter()
-
handle
protected void handle(Terminal.Signal signal)
-
bindKeys
protected void bindKeys()
-
-