Package org.jline.builtins
Class Nano
java.lang.Object
org.jline.builtins.Nano
- All Implemented Interfaces:
Editor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
protected static enum
protected static enum
protected static class
protected static enum
protected static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private boolean
protected final BindingReader
protected Nano.Buffer
protected int
protected final List<Nano.Buffer>
boolean
private boolean
protected final Display
protected final StringBuilder
protected String
protected String
protected boolean
private String
protected KeyMap<Nano.Operation>
protected boolean
protected int
protected String
boolean
private boolean
protected int
boolean
protected Nano.PatternHistory
boolean
boolean
protected boolean
private boolean
protected final Path
protected boolean
protected boolean
protected boolean
protected String
private boolean
protected LinkedHashMap<String,
String> protected final Size
boolean
private String
int
private boolean
private boolean
protected final Terminal
private boolean
protected final int
private final boolean
boolean
private boolean
protected Nano.WriteMode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
bindKeys()
(package private) void
(package private) String
protected List<AttributedString>
(package private) void
(package private) void
curPos()
(package private) void
display()
(package private) void
private int
editInputBuffer
(Nano.Operation operation, int curPos) (package private) void
private String
private String
getTitle()
private String
private Nano.Operation
private Nano.Operation
(package private) void
gotoLine()
private LinkedHashMap<String,
String> protected void
handle
(Terminal.Signal signal) (package private) void
private LinkedHashMap<String,
String> (package private) void
(package private) void
(package private) void
(package private) void
numbers()
(package private) void
void
void
private void
parseConfig
(Path file) (package private) void
(package private) boolean
quit()
(package private) void
read()
private Nano.Operation
readOperation
(KeyMap<Nano.Operation> keymap) private LinkedHashMap<String,
String> (package private) String
replace()
private LinkedHashMap<String,
String> (package private) void
void
run()
private boolean
(package private) void
search()
(package private) void
private LinkedHashMap<String,
String> (package private) void
setMessage
(String message) void
setRestricted
(boolean restricted) (package private) void
private LinkedHashMap<String,
String> (package private) void
static String[]
usage()
(package private) void
wrap()
(package private) boolean
write()
private LinkedHashMap<String,
String>
-
Field Details
-
terminal
-
display
-
bindingReader
-
size
-
root
-
vsusp
protected final int vsusp -
syntaxFiles
-
keys
-
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
-
matchBrackets
-
punct
-
quoteStr
-
restricted
private boolean restricted -
syntaxName
-
writeBackup
private boolean writeBackup -
atBlanks
private boolean atBlanks -
view
private boolean view -
cut2end
private boolean cut2end -
tempFile
private boolean tempFile -
historyLog
-
tabsToSpaces
private boolean tabsToSpaces -
autoIndent
private boolean autoIndent -
buffers
-
bufferIndex
protected int bufferIndex -
buffer
-
message
-
errorMessage
-
nbBindings
protected int nbBindings -
shortcuts
-
editMessage
-
editBuffer
-
searchCaseSensitive
protected boolean searchCaseSensitive -
searchRegexp
protected boolean searchRegexp -
searchBackwards
protected boolean searchBackwards -
searchTerm
-
matchedLength
protected int matchedLength -
patternHistory
-
writeMode
-
cutbuffer
-
mark
protected boolean mark -
highlight
protected boolean highlight -
searchToReplace
private boolean searchToReplace -
readNewBuffer
protected boolean readNewBuffer -
nanorcIgnoreErrors
private boolean nanorcIgnoreErrors -
windowsTerminal
private final boolean windowsTerminal
-
-
Constructor Details
-
Nano
-
Nano
-
Nano
-
Nano
-
-
Method Details
-
usage
-
parseConfig
- Throws:
IOException
-
setRestricted
public void setRestricted(boolean restricted) - Specified by:
setRestricted
in interfaceEditor
-
open
- Throws:
IOException
-
open
- Specified by:
open
in interfaceEditor
- Throws:
IOException
-
run
- Specified by:
run
in interfaceEditor
- Throws:
IOException
-
editInputBuffer
-
write
- Throws:
IOException
-
readOperation
-
save
- Throws:
IOException
-
getYNC
-
getYNC
-
getWriteMessage
-
read
void read() -
getReadMessage
-
gotoLine
- Throws:
IOException
-
gotoShortcuts
-
readShortcuts
-
writeShortcuts
-
helpShortcuts
-
searchShortcuts
-
replaceShortcuts
-
standardShortcuts
-
help
-
searchAndReplace
void searchAndReplace() -
search
- Throws:
IOException
-
replace
- Throws:
IOException
-
getSearchMessage
-
computeCurPos
String computeCurPos() -
curPos
void curPos() -
prevBuffer
- Throws:
IOException
-
nextBuffer
- Throws:
IOException
-
setMessage
-
quit
- Throws:
IOException
-
numbers
void numbers() -
smoothScrolling
void smoothScrolling() -
mouseSupport
- Throws:
IOException
-
constantCursor
void constantCursor() -
oneMoreLine
void oneMoreLine() -
wrap
void wrap() -
clearScreen
void clearScreen() -
mouseEvent
void mouseEvent() -
enableSuspension
void enableSuspension() -
toggleSuspension
void toggleSuspension() -
getTitle
-
resetDisplay
void resetDisplay() -
display
void display() -
display
-
handle
-
bindKeys
protected void bindKeys()
-