public class Nano extends Object
Modifier and Type | Field | Description |
---|---|---|
protected BindingReader |
bindingReader |
|
String |
brackets |
|
protected org.jline.builtins.Nano.Buffer |
buffer |
|
protected int |
bufferIndex |
|
protected List<org.jline.builtins.Nano.Buffer> |
buffers |
|
boolean |
constantCursor |
|
protected Display |
display |
|
protected StringBuilder |
editBuffer |
|
protected String |
editMessage |
|
protected KeyMap<org.jline.builtins.Nano.Operation> |
keys |
|
String |
matchBrackets |
|
protected String |
message |
|
boolean |
mouseSupport |
|
protected int |
nbBindings |
|
boolean |
oneMoreLine |
|
boolean |
printLineNumbers |
|
String |
punct |
|
String |
quoteStr |
|
protected boolean |
readNewBuffer |
|
protected Path |
root |
|
protected boolean |
searchBackwards |
|
protected boolean |
searchCaseSensitive |
|
protected boolean |
searchRegexp |
|
protected String |
searchTerm |
|
protected LinkedHashMap<String,String> |
shortcuts |
|
protected Size |
size |
|
boolean |
smoothScrolling |
|
int |
tabs |
|
protected Terminal |
terminal |
|
String |
title |
|
boolean |
wrapping |
|
protected boolean |
writeBackup |
|
protected org.jline.builtins.Nano.WriteMode |
writeMode |
Constructor | Description |
---|---|
Nano(Terminal terminal,
File root) |
|
Nano(Terminal terminal,
Path root) |
Modifier and Type | Method | Description |
---|---|---|
protected void |
bindKeys() |
|
protected List<AttributedString> |
computeFooter() |
|
protected void |
flush() |
|
String |
getTitle() |
|
protected void |
handle(Terminal.Signal signal) |
|
void |
open(String... files) |
|
void |
open(List<String> files) |
|
void |
run() |
protected final Terminal terminal
protected final Display display
protected final BindingReader bindingReader
protected final Size size
protected final Path root
protected KeyMap<org.jline.builtins.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 int tabs
public String brackets
public String matchBrackets
public String punct
public String quoteStr
protected final List<org.jline.builtins.Nano.Buffer> buffers
protected int bufferIndex
protected org.jline.builtins.Nano.Buffer buffer
protected String message
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 org.jline.builtins.Nano.WriteMode writeMode
protected boolean writeBackup
protected boolean readNewBuffer
public void open(String... files) throws IOException
IOException
public void open(List<String> files) throws IOException
IOException
public void run() throws IOException
IOException
public String getTitle()
protected void flush()
protected List<AttributedString> computeFooter()
protected void handle(Terminal.Signal signal)
protected void bindKeys()
Copyright © 2016. All rights reserved.