avancement planning
This commit is contained in:
+15
@@ -233,6 +233,21 @@ Exit the [alternative screen](https://terminalguide.namepad.de/mode/p47/), assum
|
||||
*/
|
||||
export const exitAlternativeScreen: string;
|
||||
|
||||
/**
|
||||
Begin [synchronized output](https://contour-terminal.org/vt-extensions/synchronized-output/) to reduce flicker during renders.
|
||||
*/
|
||||
export const beginSynchronizedOutput: string;
|
||||
|
||||
/**
|
||||
End [synchronized output](https://contour-terminal.org/vt-extensions/synchronized-output/).
|
||||
*/
|
||||
export const endSynchronizedOutput: string;
|
||||
|
||||
/**
|
||||
Wrap output in [synchronized output](https://contour-terminal.org/vt-extensions/synchronized-output/) sequences to reduce flicker during renders.
|
||||
*/
|
||||
export function synchronizedOutput(text: string): string;
|
||||
|
||||
/**
|
||||
Output a beeping sound.
|
||||
*/
|
||||
|
||||
+4
@@ -132,6 +132,10 @@ export const clearTerminal = isOldWindows()
|
||||
export const enterAlternativeScreen = ESC + '?1049h';
|
||||
export const exitAlternativeScreen = ESC + '?1049l';
|
||||
|
||||
export const beginSynchronizedOutput = ESC + '?2026h';
|
||||
export const endSynchronizedOutput = ESC + '?2026l';
|
||||
export const synchronizedOutput = text => beginSynchronizedOutput + text + endSynchronizedOutput;
|
||||
|
||||
export const beep = BEL;
|
||||
|
||||
export const link = (text, url) => {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ansi-escapes",
|
||||
"version": "7.2.0",
|
||||
"version": "7.3.0",
|
||||
"description": "ANSI escape codes for manipulating the terminal",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/ansi-escapes",
|
||||
|
||||
+12
@@ -159,6 +159,18 @@ Enter the [alternative screen](https://terminalguide.namepad.de/mode/p47/).
|
||||
|
||||
Exit the [alternative screen](https://terminalguide.namepad.de/mode/p47/), assuming `enterAlternativeScreen` was called before.
|
||||
|
||||
### beginSynchronizedOutput
|
||||
|
||||
Begin [synchronized output](https://contour-terminal.org/vt-extensions/synchronized-output/) to reduce flicker during renders.
|
||||
|
||||
### endSynchronizedOutput
|
||||
|
||||
End [synchronized output](https://contour-terminal.org/vt-extensions/synchronized-output/).
|
||||
|
||||
### synchronizedOutput(text)
|
||||
|
||||
Wrap output in [synchronized output](https://contour-terminal.org/vt-extensions/synchronized-output/) sequences to reduce flicker during renders.
|
||||
|
||||
### beep
|
||||
|
||||
Output a beeping sound.
|
||||
|
||||
Reference in New Issue
Block a user