![]() ![]() If n is one, clear from cursor to beginning of the line. If n is zero (or missing), clear from cursor to the end of the line. If n is 2, clear entire screen.Įrase.inLine(n) ⇒ stringErases part of the line. If n is 1, clear from cursor to beginning of the screen. If n is 0 (or missing), clear from cursor to end of screen. * (#module_) ⇒ string erase.display(n) ⇒ stringClears part of the screen. The values are 1-based, and default to 1 (top left corner) if omitted. If the cursor is already at the edge of the screen, this has no effectĬursor.nextLine( lines) ⇒ stringMoves cursor to beginning of the line n lines down.Ĭursor.previousLine( lines) ⇒ stringMoves cursor to beginning of the line n lines up.Ĭursor.horizontalAbsolute(n) ⇒ stringMoves the cursor to column n.Ĭursor.position(n, m) ⇒ stringMoves the cursor to row n, column m. If the cursor is already at the edge of the screen, this has no effectĬursor.back( lines) ⇒ stringMoves the cursor lines cells back. If the cursor is already at the edge of the screen, this has no effectĬursor.forward( lines) ⇒ stringMoves the cursor lines cells forward. ![]() ![]() If the cursor is already at the edge of the screen, this has no effectĬursor.down( lines) ⇒ stringMoves the cursor lines cells down. * (#module_) ⇒ string cursor.hideHides the cursorĬursor.up( lines) ⇒ stringMoves the cursor lines cells up. Kind: static property of ansi-escape-sequences * )](#module_ansi-escape-sequences.format) ⇒ string ansi.cursorcursor-related sequences * (#module_ansi-escape-sequences.styles) ⇒ string * (#module_ansi-escape-sequences.bgRgb) ⇒ string * (#module_ansi-escape-sequences.rgb) ⇒ string * (#module_ansi-escape-sequences.style) : enum Useful for adding colour to your command-line output, or building a dynamic text user interface. Ansi-escape-sequencesA simple library containing all known terminal ansi escape codes and sequences. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |