We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0266e5 commit 8fe7584Copy full SHA for 8fe7584
v-next/hardhat-ignition/src/internal/hook-handlers/user-interruptions.ts
@@ -24,9 +24,14 @@ export function getUserInterruptionsHandlers(): UserInterruptionHooks {
24
25
const returnValue = next(context, interruptor, message);
26
27
- // Wait a few seconds so the user can read the message
28
- const WAIT_MESSAGE_TIME_MS = 6_000;
29
- await new Promise((resolve) => setTimeout(resolve, WAIT_MESSAGE_TIME_MS));
+ // If we are going to clear the message out, we wait some time before
+ // doing it, so that the user can read it.
+ if (process.stdout.isTTY) {
30
+ const WAIT_MESSAGE_TIME_MS = 10_000;
31
+ await new Promise((resolve) =>
32
+ setTimeout(resolve, WAIT_MESSAGE_TIME_MS),
33
+ );
34
+ }
35
36
restoreAndClearBelow();
37
0 commit comments