ng-terminal
Version:
NgTerminal is a terminal component on Angular 16 or higher.
255 lines (254 loc) • 7.8 kB
TypeScript
export declare class FunctionsUsingCSI {
static get CSI(): string;
/**
* CSI Ps @ Insert Ps (Blank) Character(s) (default = 1) (ICH).
*
* */
static insertBlank(count: number): string;
/**
* CSI Ps SP @ */
/**
* CSI Ps A Cursor Up Ps Times (default = 1) (CUU).
* \x9b3A */
static cursorUp(count: number): string;
/**
* CSI Ps SP A */
/**
* CSI Ps B Cursor Down Ps Times (default = 1) (CUD).
* \x9b3B */
static cursorDown(count: number): string;
/**
* CSI Ps C Cursor Forward Ps Times (default = 1) (CUF).
* \x9b3C */
static cursorForward(count: number): string;
/**
* CSI Ps D Cursor Backward Ps Times (default = 1) (CUB).
* \x9b3D */
static cursorBackward(count: number): string;
/**
* CSI Ps E Cursor Next Line Ps Times (default = 1) (CNL).
* \x9b3E
* */
static cursorNextLine(count: number): string;
/**
* CSI Ps F Cursor Preceding Line Ps Times (default = 1) (CPL).
* \x9b3F
* */
static cursorPrecedingLine(count: number): string;
/**
* CSI Ps G Cursor Character Absolute [column] (default = [row,1]) (CHA).
* \x9b9G
* */
static cursorColumn(count: number): string;
/**
* CSI Ps ; Ps H Cursor Position [row;column] (default = [1,1]) (CUP).
* \x9b2;2H
* */
static cursorPosition(row: number, col: number): string;
/**
* CSI Ps I Cursor Forward Tabulation Ps tab stops (default = 1) (CHT). */
/**
* CSI Ps J Erase in Display (ED), VT100.
* Ps = 0 -> Erase Below (default).
* Ps = 1 -> Erase Above.
* Ps = 2 -> Erase All.
* Ps = 3 -> Erase Saved Lines (xterm).
* \x9b2J
* */
static eraseInDisplay(category: KindOfEraseInDisplay): string;
/**
* CSI ? Ps J
* Erase in Display (DECSED), VT220.
* Ps = 0 -> Selective Erase Below (default).
* Ps = 1 -> Selective Erase Above.
* Ps = 2 -> Selective Erase All.
* Ps = 3 -> Selective Erase Saved Lines (xterm).
* \x9b?2J
* */
static eraseSelectiveThingsInDisplay(category: KindOfEraseInDisplay): string;
/**
* CSI Ps K
* Erase in Line (EL), VT100.
* Ps = 0 -> Erase to Right (default).
* Ps = 1 -> Erase to Left.
* Ps = 2 -> Erase All.
* \x9b?1K
* */
static eraseInLine(category: KindOfEraseInLine): string;
/**
* CSI ? Ps K
* Erase in Line (DECSEL), VT220.
* Ps = 0 -> Selective Erase to Right (default).
* Ps = 1 -> Selective Erase to Left.
* Ps = 2 -> Selective Erase All.
* \x9b?1K
* */
static eraseSelectiveThingsInLine(category: KindOfEraseInLine): string;
/**
* CSI Ps L Insert Ps Line(s) (default = 1) (IL).
* \x9b2L
* */
static insertLines(count: number): string;
/**
* CSI Ps M Delete Ps Line(s) (default = 1) (DL).
* \x9b2M
* */
static deleteLines(count: number): string;
/**
* CSI Ps P Delete Ps Character(s) (default = 1) (DCH).
* \x9b2P
* */
static deleteCharacter(count: number): string;
/**
* CSI Ps S Scroll up Ps lines (default = 1) (SU), VT420, ECMA-48.
* \x9b2S
* */
static scrollUpLines(count: number): string;
/**
* CSI ? Pi ; Pa ; Pv S */
/**
* CSI Ps T Scroll down Ps lines (default = 1) (SD), VT420.
* \x9b2T
* */
static scrollDownLines(count: number): string;
/**
* CSI Ps ; Ps ; Ps ; Ps ; Ps T */
/**
* CSI > Ps ; Ps T */
/**
* CSI Ps X Erase Ps Character(s) (default = 1) (ECH).
* \x9b2X
* */
static eraseCharacters(count: number): string;
/**
* CSI Ps Z Cursor Backward Tabulation Ps tab stops (default = 1) (CBT).
* \x9b2Z
* */
static cursorBackwardTabulationPstabstops(count: number): string;
/**
* CSI Ps ^ Scroll down Ps lines (default = 1) (SD), ECMA-48.
* \x9b2^
* */
static scrolldownPslines(count: number): string;
/**
* CSI Ps ` Character Position Absolute [column] (default = [row,1])
* \x9b1` */
static characterPositionAbsolute(count: number): string;
/**
* CSI Ps a Character Position Relative [columns] (default = [row,col+1])
* \x9b1a */
static characterPositionRelative(count: number): string;
/**
* CSI Ps b Repeat the preceding graphic character Ps times (REP).
* \x9b1b
* */
static repeatThePrecedingGraphicCharacter(count: number): string;
/**
* CSI Pm d Line Position Absolute [row] (default = [1,column]) (VPA).
* \x9b4d
* */
static linePositionAbsolute(count: number): string;
/**
* CSI Pm e Line Position Relative [rows] (default = [row+1,column])
* \x9b1e
* */
static linePositionRelative(count: number): string;
/**
* CSI Ps ; Ps f Horizontal and Vertical Position [row;column] (default =
* [1,1])
* \x9b3;5f
* */
static horizontalandVerticalPosition(row: number, column: number): string;
/**
* CSI Ps g Tab Clear (TBC).
* \x9b3g
* */
/**
* CSI Pm h Set Mode (SM).
* \x9b4h
* */
static setMode(mode: KindOfSetMode, ...additionalModes: KindOfSetMode[]): string;
/**
* CSI ? Pm h DEC Private Mode Set (DECSET).
* */
/**
* CSI Pm i Media Copy (MC). */
/**
* CSI ? Pm i */
/**
* CSI Pm l Reset Mode (RM).
* \x9b4l
* */
static resetMode(mode: KindOfResetMode, ...additionalModes: KindOfResetMode[]): string;
/**
* CSI ? Pm l */
/**
* CSI Pm m Character Attributes (SGR).
* \x9b31m
* */
static characterAttributes(firstAttribute: KindOfCharacterAttributes, ...additionalAttributes: KindOfCharacterAttributes[]): string;
}
export declare enum KindOfEraseInDisplay {
Below = 0,
Above = 1,
All = 2,
SavedLines = 3
}
export declare enum KindOfEraseInLine {
Right = 0,
Left = 1,
All = 2
}
export declare enum KindOfTabClear {
ClearCurrentColumn = 0,
ClearAll = 3
}
export declare enum KindOfSetMode {
KeyboardActionMode = 2,
InsertMode = 4,
SendReceive = 12,
AutomaticNewline = 20
}
export declare enum KindOfResetMode {
KeyboardActionMode = 2,
ReplaceMode = 4,
SendReceive = 12,
NormalNewline = 20
}
export declare enum KindOfCharacterAttributes {
Normal = 0,
Bold = 1,
Faint = 2,
Italicized = 3,
Underlined = 4,
Blink = 5,
Inverse = 7,
Invisible = 8,
CrossedOutcharacters = 9,
DoublyUnderlined = 21,
NormalNeitherBoldNorFaint = 22,
Notitalicized = 23,
Notunderlined = 24,
Steady = 25,
Positive = 27,
Visible = 28,
NotcrossedOut = 29,
SetforegroundcolortoBlack = 30,
SetforegroundcolortoRed = 31,
SetforegroundcolortoGreen = 32,
SetforegroundcolortoYellow = 33,
SetforegroundcolortoBlue = 34,
SetforegroundcolortoMagenta = 35,
SetforegroundcolortoCyan = 36,
SetforegroundcolortoWhite = 37,
Setforegroundcolortodefault = 39,
SetbackgroundcolortoBlack = 40,
SetbackgroundcolortoRed = 41,
SetbackgroundcolortoGreen = 42,
SetbackgroundcolortoYellow = 43,
SetbackgroundcolortoBlue = 44,
SetbackgroundcolortoMagenta = 45,
SetbackgroundcolortoCyan = 46,
SetbackgroundcolortoWhite = 47,
SetbackgroundcolortoDefault = 49
}