Skip to content

Commit

Permalink
fix xo warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
broofa committed Apr 26, 2024
1 parent 04f3ea6 commit 073f63c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion index.d.ts
@@ -1,4 +1,3 @@

import type {Buffer} from 'node:buffer';

// From https://github.com/sindresorhus/type-fest
Expand Down
10 changes: 5 additions & 5 deletions index.js
Expand Up @@ -107,11 +107,11 @@ export const clearScreen = '\u001Bc';

export const clearTerminal = isWindows
? `${eraseScreen}${ESC}0f`
: // 1. Erases the screen (Only done in case `2` is not supported)
// 2. Erases the whole screen including scrollback buffer
// 3. Moves cursor to the top-left position
// More info: https://www.real-world-systems.com/docs/ANSIcode.html
`${eraseScreen}${ESC}3J${ESC}H`;
// 1. Erases the screen (Only done in case `2` is not supported)
// 2. Erases the whole screen including scrollback buffer
// 3. Moves cursor to the top-left position
// More info: https://www.real-world-systems.com/docs/ANSIcode.html
: `${eraseScreen}${ESC}3J${ESC}H`;

export const enterAlternativeScreen = ESC + '?1049h';
export const exitAlternativeScreen = ESC + '?1049l';
Expand Down

0 comments on commit 073f63c

Please sign in to comment.