Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jokester
Created March 14, 2019 02:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jokester/d044830089263c52f00aeb9c54623020 to your computer and use it in GitHub Desktop.
Save jokester/d044830089263c52f00aeb9c54623020 to your computer and use it in GitHub Desktop.
disable clear of terminal in next.js 8
{
// silly way to prevent next.js clearing screen
// see https://github.com/zeit/next.js/blob/41eaa9cf5ade8f233439a80f7e846ccb00ef3f18/packages/next/build/output/store.ts#L24-L25
const readline = require('readline');
readline.cursorTo = readline.clearScreenDown = () => {};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment