A B C D E F G H I K L N O P R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- action - Variable in class net.morimekta.terminal.selection.EntryCommand
- add(int, String) - Method in class net.morimekta.terminal.LineBuffer
- add(String) - Method in class net.morimekta.terminal.LineBuffer
- addAll(int, Collection<? extends String>) - Method in class net.morimekta.terminal.LineBuffer
- addAll(Collection<? extends String>) - Method in class net.morimekta.terminal.LineBuffer
- addTask(String, ProgressManager.ProgressAsyncHandler<T>) - Method in class net.morimekta.terminal.progress.ProgressManager
-
Add a task to be done while showing progress.
- addTask(String, ProgressManager.ProgressHandler<T>) - Method in class net.morimekta.terminal.progress.ProgressManager
-
Add a task to be done while showing progress.
- ASCII - net.morimekta.terminal.progress.DefaultSpinners
-
Simple ASCII spinner using '|', '/', '-', '\'.
- asList() - Method in class net.morimekta.terminal.LineBuffer
- atComplete(Duration, int) - Method in enum net.morimekta.terminal.progress.DefaultSpinners
- atComplete(Duration, int) - Method in interface net.morimekta.terminal.progress.Spinner
-
Generate a progress line that can contain a progress bar, percentage progress and a spinner for a completed progress.
- atProgress(double, int, Duration, int) - Method in enum net.morimekta.terminal.progress.DefaultSpinners
- atProgress(double, int, Duration, int) - Method in interface net.morimekta.terminal.progress.Spinner
-
Generate a progress line that can contain a progress bar, percentage progress and a spinner as printed during processing, including not started yet.
- atStopped(double, String, int) - Method in enum net.morimekta.terminal.progress.DefaultSpinners
- atStopped(double, String, int) - Method in interface net.morimekta.terminal.progress.Spinner
-
Generate a progress line that can contain a progress bar, percentage progress and a spinner for stopped progress with a message.
B
- BLOCKS - net.morimekta.terminal.progress.DefaultSpinners
-
Using a block char that bounces up and down to show progress.
- build() - Method in class net.morimekta.terminal.selection.SelectionBuilder
C
- call(int, E, Selection<E>) - Method in interface net.morimekta.terminal.selection.EntryAction
-
Call the command with the given entry.
- cancel(boolean) - Method in class net.morimekta.terminal.progress.ProgressManager.InternalTask
- charReader() - Method in class net.morimekta.terminal.Terminal
- clear() - Method in class net.morimekta.terminal.LineBuffer
- clearLast(int) - Method in class net.morimekta.terminal.LineBuffer
-
Clear the last N lines, and move the cursor to the end of the last remaining line.
- clock(Clock) - Method in class net.morimekta.terminal.selection.SelectionBuilder
- close() - Method in class net.morimekta.terminal.input.InputConfirmation
- close() - Method in class net.morimekta.terminal.input.InputLine
- close() - Method in class net.morimekta.terminal.input.InputPassword
- close() - Method in class net.morimekta.terminal.LineBuffer
- close() - Method in class net.morimekta.terminal.progress.ProgressLine
- close() - Method in class net.morimekta.terminal.progress.ProgressManager
-
Close the progress and all tasks associated with it.
- close() - Method in class net.morimekta.terminal.selection.Selection
- close() - Method in class net.morimekta.terminal.Terminal
- complete(String, LinePrinter) - Method in interface net.morimekta.terminal.input.InputLine.TabCompletion
-
Try to complete the given string.
- complete(T) - Method in class net.morimekta.terminal.progress.ProgressManager.InternalTask
- completeExceptionally(Throwable) - Method in class net.morimekta.terminal.progress.ProgressManager.InternalTask
- confirm(String) - Method in class net.morimekta.terminal.selection.Selection
-
Make a single confirmation with no default.
- confirm(String) - Method in class net.morimekta.terminal.Terminal
-
Make a user confirmation.
- confirm(String, boolean) - Method in class net.morimekta.terminal.selection.Selection
-
Make a single confirmation with specified default.
- confirm(String, boolean) - Method in class net.morimekta.terminal.Terminal
-
Make a user confirmation.
- contains(Object) - Method in class net.morimekta.terminal.LineBuffer
- containsAll(Collection<?>) - Method in class net.morimekta.terminal.LineBuffer
D
- debug(String, Object...) - Method in interface net.morimekta.terminal.LinePrinter
-
Print an info string message.
- DefaultSpinners - Enum in net.morimekta.terminal.progress
-
Which spinner to show.
E
- EntryAction<E> - Interface in net.morimekta.terminal.selection
-
The command action interface.
- EntryCommand<E> - Class in net.morimekta.terminal.selection
-
Command.
- EntryCommand(char, String, EntryAction<E>) - Constructor for class net.morimekta.terminal.selection.EntryCommand
- EntryCommand(char, EntryAction<E>) - Constructor for class net.morimekta.terminal.selection.EntryCommand
- EntryCommand(Char, String, EntryAction<E>) - Constructor for class net.morimekta.terminal.selection.EntryCommand
- EntryCommand(Char, EntryAction<E>) - Constructor for class net.morimekta.terminal.selection.EntryCommand
- EntryListSource<E> - Class in net.morimekta.terminal.selection
- EntryListSource(List<E>) - Constructor for class net.morimekta.terminal.selection.EntryListSource
- EntryPrinter<E> - Interface in net.morimekta.terminal.selection
-
Interface for the entry printer.
- EntrySource<E> - Interface in net.morimekta.terminal.selection
- equals(Object) - Method in class net.morimekta.terminal.LineBuffer
- error(String, Object...) - Method in interface net.morimekta.terminal.LinePrinter
-
Print an error string message.
- executeAbortable(ExecutorService, Runnable) - Method in class net.morimekta.terminal.Terminal
-
Execute runnable, which may not be interruptable by itself, but listen to terminal input and abort the task if CTRL-C is pressed.
- executeAbortable(ExecutorService, Callable<T>) - Method in class net.morimekta.terminal.Terminal
-
Execute callable, which may not be interruptable by itself, but listen to terminal input and abort the task if CTRL-C is pressed.
- EXIT - net.morimekta.terminal.selection.SelectionReaction
-
Exit selection with no value (null).
F
- fatal(String, Object...) - Method in interface net.morimekta.terminal.LinePrinter
-
Print a fatal string message.
- finish() - Method in class net.morimekta.terminal.Terminal
-
Finish the current set of lines and continue below.
- formatln(String, Object...) - Method in interface net.morimekta.terminal.LinePrinter
-
Format and print a string message.
G
- get(int) - Method in class net.morimekta.terminal.LineBuffer
- get(int) - Method in class net.morimekta.terminal.selection.EntryListSource
- get(int) - Method in interface net.morimekta.terminal.selection.EntrySource
- getAsBoolean() - Method in class net.morimekta.terminal.input.InputConfirmation
- getProgress() - Method in class net.morimekta.terminal.progress.Progress
- getRatio() - Method in class net.morimekta.terminal.progress.Progress
- getTotal() - Method in class net.morimekta.terminal.progress.Progress
H
- handle(CompletableFuture<T>, Flow.Subscriber<Progress>) - Method in interface net.morimekta.terminal.progress.ProgressManager.ProgressAsyncHandler
- handle(Flow.Subscriber<Progress>) - Method in interface net.morimekta.terminal.progress.ProgressManager.ProgressHandler
- handleInterrupt(Char) - Method in class net.morimekta.terminal.input.InputConfirmation
-
Handle user interrupts.
- hashCode() - Method in class net.morimekta.terminal.LineBuffer
- hidden - Variable in class net.morimekta.terminal.selection.EntryCommand
- hiddenOn(char, Function<E, SelectionReaction>) - Method in class net.morimekta.terminal.selection.SelectionBuilder
- hiddenOn(char, EntryAction<E>) - Method in class net.morimekta.terminal.selection.SelectionBuilder
- hiddenOn(char, SelectionReaction) - Method in class net.morimekta.terminal.selection.SelectionBuilder
- hiddenOn(Char, Function<E, SelectionReaction>) - Method in class net.morimekta.terminal.selection.SelectionBuilder
- hiddenOn(Char, EntryAction<E>) - Method in class net.morimekta.terminal.selection.SelectionBuilder
- hiddenOn(Char, SelectionReaction) - Method in class net.morimekta.terminal.selection.SelectionBuilder
I
- indexOf(E) - Method in class net.morimekta.terminal.selection.EntryListSource
- indexOf(E) - Method in interface net.morimekta.terminal.selection.EntrySource
- indexOf(Object) - Method in class net.morimekta.terminal.LineBuffer
- info(String, Object...) - Method in interface net.morimekta.terminal.LinePrinter
-
Print an info string message.
- initial(int) - Method in class net.morimekta.terminal.selection.SelectionBuilder
- initial(E) - Method in class net.morimekta.terminal.selection.SelectionBuilder
- InputConfirmation - Class in net.morimekta.terminal.input
- InputConfirmation(Terminal, String) - Constructor for class net.morimekta.terminal.input.InputConfirmation
-
Constructor for simple confirmation.
- InputConfirmation(Terminal, String, Boolean) - Constructor for class net.morimekta.terminal.input.InputConfirmation
-
Constructor for complete line-input.
- InputLine - Class in net.morimekta.terminal.input
-
Class that handled reading a line from terminal input with character and line validators, and optional tab completion.
- InputLine(Terminal, String) - Constructor for class net.morimekta.terminal.input.InputLine
-
Constructor for simple line-input.
- InputLine(Terminal, String, InputLine.CharValidator, InputLine.LineValidator, InputLine.TabCompletion) - Constructor for class net.morimekta.terminal.input.InputLine
-
Constructor for complete line-input.
- InputLine(Terminal, String, InputLine.CharValidator, InputLine.LineValidator, InputLine.TabCompletion, Pattern) - Constructor for class net.morimekta.terminal.input.InputLine
-
Constructor for complete line-input.
- InputLine.CharValidator - Interface in net.morimekta.terminal.input
-
Character validator interface.
- InputLine.LineValidator - Interface in net.morimekta.terminal.input
-
Line validator interface.
- InputLine.TabCompletion - Interface in net.morimekta.terminal.input
-
Tab completion interface.
- InputPassword - Class in net.morimekta.terminal.input
-
Class that handled reading a password from terminal.
- InputPassword(Terminal, String) - Constructor for class net.morimekta.terminal.input.InputPassword
-
Constructor for simple password input.
- InputPassword(Terminal, String, String) - Constructor for class net.morimekta.terminal.input.InputPassword
-
Constructor for password input with specified password input.
- isConfirmation(Char) - Method in class net.morimekta.terminal.input.InputConfirmation
-
If the provided char indicates confirmation.
- isDefault(Char) - Method in class net.morimekta.terminal.input.InputConfirmation
-
Handle backspace.
- isDone() - Method in class net.morimekta.terminal.progress.ProgressLine
- isEmpty() - Method in class net.morimekta.terminal.LineBuffer
- isRejection(Char) - Method in class net.morimekta.terminal.input.InputConfirmation
- iterator() - Method in class net.morimekta.terminal.LineBuffer
K
- key - Variable in class net.morimekta.terminal.selection.EntryCommand
L
- lastIndexOf(Object) - Method in class net.morimekta.terminal.LineBuffer
- LineBuffer - Class in net.morimekta.terminal
-
Class that holds a set of lines, that are printed to the terminal, and methods to dynamically update those buffer.
- LineBuffer(PrintStream) - Constructor for class net.morimekta.terminal.LineBuffer
-
Create a LineBuffer instance.
- LineBuffer(PrintStream, int) - Constructor for class net.morimekta.terminal.LineBuffer
-
Create a LineBuffer instance.
- LinePrinter - Interface in net.morimekta.terminal
-
LinePrinter interface.
- lines() - Method in class net.morimekta.terminal.progress.ProgressManager
- lineWidth(int) - Method in class net.morimekta.terminal.selection.SelectionBuilder
- listIterator() - Method in class net.morimekta.terminal.LineBuffer
- listIterator(int) - Method in class net.morimekta.terminal.LineBuffer
- load(int, int) - Method in class net.morimekta.terminal.selection.EntryListSource
- load(int, int) - Method in interface net.morimekta.terminal.selection.EntrySource
- lp() - Method in class net.morimekta.terminal.Terminal
-
Get a line printer that prints lines to the terminal output according to terminal mode.
N
- name - Variable in class net.morimekta.terminal.selection.EntryCommand
- net.morimekta.terminal - module net.morimekta.terminal
-
Package containing utilities for handling advanced terminal I/O.
- net.morimekta.terminal - package net.morimekta.terminal
- net.morimekta.terminal.input - package net.morimekta.terminal.input
- net.morimekta.terminal.progress - package net.morimekta.terminal.progress
- net.morimekta.terminal.selection - package net.morimekta.terminal.selection
- newBuilder(List<E>) - Static method in class net.morimekta.terminal.selection.Selection
- newBuilder(EntrySource<E>) - Static method in class net.morimekta.terminal.selection.Selection
O
- on(char, String, Function<E, SelectionReaction>) - Method in class net.morimekta.terminal.selection.SelectionBuilder
- on(char, String, EntryAction<E>) - Method in class net.morimekta.terminal.selection.SelectionBuilder
- on(char, String, SelectionReaction) - Method in class net.morimekta.terminal.selection.SelectionBuilder
- on(Char, String, Function<E, SelectionReaction>) - Method in class net.morimekta.terminal.selection.SelectionBuilder
- on(Char, String, EntryAction<E>) - Method in class net.morimekta.terminal.selection.SelectionBuilder
- on(Char, String, SelectionReaction) - Method in class net.morimekta.terminal.selection.SelectionBuilder
- onComplete() - Method in class net.morimekta.terminal.progress.ProgressLine
- onComplete() - Method in class net.morimekta.terminal.progress.ProgressManager.InternalTask
- onError(Throwable) - Method in class net.morimekta.terminal.progress.ProgressLine
- onError(Throwable) - Method in class net.morimekta.terminal.progress.ProgressManager.InternalTask
- onNext(Progress) - Method in class net.morimekta.terminal.progress.ProgressLine
-
Update the progress to reflect the current progress value.
- onNext(Progress) - Method in class net.morimekta.terminal.progress.ProgressManager.InternalTask
-
Update the progress to reflect the current progress value.
- onSubscribe(Flow.Subscription) - Method in class net.morimekta.terminal.progress.ProgressLine
- onSubscribe(Flow.Subscription) - Method in class net.morimekta.terminal.progress.ProgressManager.InternalTask
P
- paged() - Method in class net.morimekta.terminal.selection.SelectionBuilder
- pageMargin(int) - Method in class net.morimekta.terminal.selection.SelectionBuilder
- pageSize(int) - Method in class net.morimekta.terminal.selection.SelectionBuilder
- pressToContinue(String) - Method in class net.morimekta.terminal.Terminal
-
Show a "press any key to continue" message.
- print(E) - Method in interface net.morimekta.terminal.selection.EntryPrinter
-
Print the entry line with default background.
- print(E, Color) - Method in interface net.morimekta.terminal.selection.EntryPrinter
-
Print the entry line.
- printConfirmation(boolean) - Method in class net.morimekta.terminal.input.InputConfirmation
-
Print confirmation.
- printer(EntryPrinter<E>) - Method in class net.morimekta.terminal.selection.SelectionBuilder
- println(String) - Method in interface net.morimekta.terminal.LinePrinter
-
Print a new line to the terminal.
- println(String) - Method in class net.morimekta.terminal.selection.Selection
- printStream() - Method in class net.morimekta.terminal.Terminal
-
Get a print stream that writes to the terminal according to the output mode of the terminal.
- printWriter() - Method in class net.morimekta.terminal.Terminal
-
Get a print writer that should behave as close to a direct writer.
- Progress - Class in net.morimekta.terminal.progress
-
A progress
- Progress(long, long) - Constructor for class net.morimekta.terminal.progress.Progress
- ProgressLine - Class in net.morimekta.terminal.progress
-
Show progress on a single task in how many percent (with spinner and progress-bar).
- ProgressLine(PrintStream, IntSupplier, Clock, Spinner, String) - Constructor for class net.morimekta.terminal.progress.ProgressLine
-
Create a progress updater.
- ProgressLine(PrintStream, IntSupplier, Spinner, String) - Constructor for class net.morimekta.terminal.progress.ProgressLine
-
Create a progress bar using the line printer and width supplier.
- ProgressLine(TTY, Spinner, String) - Constructor for class net.morimekta.terminal.progress.ProgressLine
-
Create a progress bar using the default terminal.
- ProgressLine(Spinner, String) - Constructor for class net.morimekta.terminal.progress.ProgressLine
-
Create a progress bar using the default terminal.
- ProgressManager - Class in net.morimekta.terminal.progress
-
Show progress on a number of tasks.
- ProgressManager(Terminal, Spinner) - Constructor for class net.morimekta.terminal.progress.ProgressManager
-
Create a progress bar using the given terminal.
- ProgressManager(Terminal, Spinner, int) - Constructor for class net.morimekta.terminal.progress.ProgressManager
-
Create a progress bar using the given terminal.
- ProgressManager(Terminal, Spinner, int, ScheduledExecutorService, Clock) - Constructor for class net.morimekta.terminal.progress.ProgressManager
-
Create a progress updater.
- ProgressManager.InternalTask<T> - Class in net.morimekta.terminal.progress
- ProgressManager.ProgressAsyncHandler<T> - Interface in net.morimekta.terminal.progress
- ProgressManager.ProgressHandler<T> - Interface in net.morimekta.terminal.progress
- prompt(String) - Method in class net.morimekta.terminal.selection.SelectionBuilder
R
- rawOut() - Method in class net.morimekta.terminal.Terminal
- readLine() - Method in class net.morimekta.terminal.input.InputLine
-
Read line from terminal.
- readLine(String) - Method in class net.morimekta.terminal.input.InputLine
-
Read line from terminal.
- readLine(String) - Method in class net.morimekta.terminal.Terminal
-
Read a line from terminal.
- readPassword() - Method in class net.morimekta.terminal.input.InputPassword
-
Read password from terminal.
- refreshKeepEntry() - Method in class net.morimekta.terminal.selection.Selection
-
Refresh the items in the view, and stay on the same entry (so will look for the currently selected entry in the entry source, and use that index as the new selected / current position.).
- refreshKeepPosition() - Method in class net.morimekta.terminal.selection.Selection
-
refresh the items in the view, and stay on the same position (index wise).
- remove(int) - Method in class net.morimekta.terminal.LineBuffer
- remove(Object) - Method in class net.morimekta.terminal.LineBuffer
- removeAll(Collection<?>) - Method in class net.morimekta.terminal.LineBuffer
- retainAll(Collection<?>) - Method in class net.morimekta.terminal.LineBuffer
- reversed() - Method in class net.morimekta.terminal.LineBuffer
- run() - Method in class net.morimekta.terminal.progress.ProgressManager.InternalTask
- runSelection() - Method in class net.morimekta.terminal.selection.Selection
-
Run interactive selection, including action handling, and return the selected item.
S
- select(int) - Method in class net.morimekta.terminal.selection.Selection
-
Move selection to index.
- select(E) - Method in class net.morimekta.terminal.selection.Selection
-
Move selection to specified entry.
- SELECT - net.morimekta.terminal.selection.SelectionReaction
-
Select the entry.
- Selection<E> - Class in net.morimekta.terminal.selection
-
Tabular selection with simple navigation.
- Selection(Terminal, String, EntrySource<E>, List<EntryCommand<E>>, EntryPrinter<E>, Clock, int, int, int, boolean, int) - Constructor for class net.morimekta.terminal.selection.Selection
-
Create a selection instance.
- SelectionBuilder<E> - Class in net.morimekta.terminal.selection
-
Tabular selection with simple navigation.
- SelectionBuilder(EntrySource<E>) - Constructor for class net.morimekta.terminal.selection.SelectionBuilder
- SelectionReaction - Enum in net.morimekta.terminal.selection
-
Command reaction enum.
- set(int, String) - Method in class net.morimekta.terminal.LineBuffer
- setAll(int, Collection<String>) - Method in class net.morimekta.terminal.LineBuffer
-
Set a number of lines starting at given offset.
- size() - Method in class net.morimekta.terminal.LineBuffer
- size() - Method in class net.morimekta.terminal.selection.EntryListSource
- size() - Method in interface net.morimekta.terminal.selection.EntrySource
- sleep(long) - Method in class net.morimekta.terminal.Terminal
- Spinner - Interface in net.morimekta.terminal.progress
-
Which spinner to show.
- STAY - net.morimekta.terminal.selection.SelectionReaction
-
Stay in the selection.
- subList(int, int) - Method in class net.morimekta.terminal.LineBuffer
T
- terminal(Terminal) - Method in class net.morimekta.terminal.selection.SelectionBuilder
- Terminal - Class in net.morimekta.terminal
-
Terminal interface.
- Terminal() - Constructor for class net.morimekta.terminal.Terminal
-
Construct a default terminal.
- Terminal(TTY) - Constructor for class net.morimekta.terminal.Terminal
-
Construct a default terminal.
- Terminal(TTYMode) - Constructor for class net.morimekta.terminal.Terminal
-
Construct a terminal with given mode.
- Terminal(TTY, InputStream, PrintStream, TTYMode, TTYModeSwitcher) - Constructor for class net.morimekta.terminal.Terminal
-
Constructor visible for testing.
- Terminal(TTY, TTYMode) - Constructor for class net.morimekta.terminal.Terminal
-
Construct a terminal with a terminal mode and custom line printer.
- toArray() - Method in class net.morimekta.terminal.LineBuffer
- toArray(T[]) - Method in class net.morimekta.terminal.LineBuffer
- toString() - Method in class net.morimekta.terminal.LineBuffer
- trace(String, Object...) - Method in interface net.morimekta.terminal.LinePrinter
-
Print an info string message.
- tty() - Method in class net.morimekta.terminal.Terminal
- tty(TTY) - Method in class net.morimekta.terminal.selection.SelectionBuilder
U
- UPDATE_KEEP_ITEM - net.morimekta.terminal.selection.SelectionReaction
-
Stay in the selection and update entries (clear draw cache and redraw all visible entries).
- UPDATE_KEEP_POSITION - net.morimekta.terminal.selection.SelectionReaction
-
Stay in the selection and update entries (clear draw cache and redraw all visible entries).
V
- validate(String, LinePrinter) - Method in interface net.morimekta.terminal.input.InputLine.LineValidator
-
Validate the full line.
- validate(Char, LinePrinter) - Method in interface net.morimekta.terminal.input.InputLine.CharValidator
-
Validate the given char.
- valueOf(String) - Static method in enum net.morimekta.terminal.progress.DefaultSpinners
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum net.morimekta.terminal.selection.SelectionReaction
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum net.morimekta.terminal.progress.DefaultSpinners
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum net.morimekta.terminal.selection.SelectionReaction
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- waitAbortable() - Method in class net.morimekta.terminal.progress.ProgressManager
-
Wait for all scheduled tasks to finish allowing the user to abort all tasks with <ctrl>-C.
- waitAbortable(Future<T>) - Method in class net.morimekta.terminal.Terminal
-
Wait for future task to be done or canceled.
- warn(String, Object...) - Method in interface net.morimekta.terminal.LinePrinter
-
Print a warning string message.
- withMode(TTYMode) - Method in class net.morimekta.terminal.Terminal
-
Get a terminal with the given TTY mode.
All Classes All Packages