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/cc8fadf12a6d95206cc9ee2f6fb4a304 to your computer and use it in GitHub Desktop.
Save jokester/cc8fadf12a6d95206cc9ee2f6fb4a304 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