console library
Classes
- BufferConsoleAdapter
- Canvas
-
Chooser<
T> - Clipboard
- Color
- Console
- The root of the console API
- ConsoleAdapter
- ConsoleCanvas
- Cursor
- CursorPosition
- DrawingCanvas
- Icon
- UTF-8 Icons
- Keyboard
- API for the Keyboard
- KeyCode
- LoadingBar
- A loading bar
- OSXClipboard
- PixelSpec
- ProgressBar
- A fancy progress bar
- Prompter
- ShellPrompt
- Emulates a Shell Prompt
- StdioConsoleAdapter
- TextPen
- TimeDisplay
- A timer display that mimics pub's timer.
- VariableStyle
- WideLoadingBar
- A wide loading bar. Kind of like a Progress Bar.
- XClipboard
Functions
-
createTree(
dynamic input, {String prefix = '', Map opts}) → String - Creates a Tree (this is like the npm dependency tree)
-
format(
String input, {List< String> args, Map<String, String> replace, VariableStyle style, VariableResolver resolver}) → String -
getClipboard(
) → Clipboard -
inheritIO(
Process process, {String prefix, bool lineBased = true}) → void -
printTree(
dynamic input, {String prefix = '', Map opts}) → void - Prints a tree. This is ported from the NPM code (the dependency tree)
-
readInput(
String message, {bool secret = false, ResponseChecker checker}) → Future< String>
Typedefs
-
ChooserEntryFormatter<
T> = String Function(T choice, int index) - NextPositionLoadingBar = dynamic Function()
- Specifies the next position of the loading bar
- ResponseChecker = bool Function(String response)
- VariableResolver = String Function(String variable)