MCPcopy
hub / github.com/vitejs/vite / clearScreen

Function clearScreen

packages/vite/src/node/logger.ts:41–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39let sameCount = 0
40
41function clearScreen() {
42 const repeatCount = process.stdout.rows - 2
43 const blank = repeatCount > 0 ? '\n'.repeat(repeatCount) : ''
44 console.log(blank)
45 readline.cursorTo(process.stdout, 0, 0)
46 readline.clearScreenDown(process.stdout)
47}
48
49export interface LoggerOptions {
50 prefix?: string

Callers

nothing calls this directly

Calls 1

logMethod · 0.80

Tested by

no test coverage detected