console_cmd 1.0.0 copy "console_cmd: ^1.0.0" to clipboard
console_cmd: ^1.0.0 copied to clipboard

outdated

/Users/cimzzz/Documents/IDEAProjects/console_cmd

console_cmd #

a series method for developing console application

about line-move, color text and clear method

Usage #

Latest version : 1.0.0

add in pubspec.yaml

dependencies:
  console_cmd: ^1.0.0
/// Output RGB Color text
/// - [text] : text you want output
/// - [breakLine] : whether break line after output
/// - [fColor] : foreground color
/// - [fGray] : foreground color's grey scale value
/// - [bColor] : background color
/// - [bGray] : background color's grey scale value
void printRGB(String text, {bool breakLine = true, int fColor, double fGray, int bColor, double bGray})

Cursor-Control #

/// Move cursor up # lines
/// - [lineCount] : line count
/// - [beginOfLine] : move to line-start
void upLine({int lineCount = 1, bool beginOfLine = true})

/// Move cursor down # lines
/// - [lineCount] : line count
/// - [beginOfLine] : move to line-start
void downLine({int lineCount = 1, bool beginOfLine = true})

/// Move cursor right # space
/// - [spaceCount] : space count
void goRight({int spaceCount = 1})

/// Move cursor left # space
/// - [spaceCount] : space count
void goLeft({int spaceCount = 1})

/// Locate the cursor at [row,col]
/// - [row] : row
/// - [col] : column
void locateCursor({int row = 0, int col = 0})

Erase method #

/// Clear the screen and home cursor
void clearScreen()

/// Clear line until end
/// - [beginOfLine] : whether clear whole line
void clearLine({bool beginOfLine = true})

Note this #

Program must run in the terminal or cmd,if not take effect

e.g. "dart xxx.dart" in your terminal instead of IDE run

5
likes
0
pub points
45%
popularity

Publisher

unverified uploader

/Users/cimzzz/Documents/IDEAProjects/console_cmd

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on console_cmd