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 f9f31c7 commit f62a1fdCopy full SHA for f62a1fd
.changeset/orange-rats-jog.md
@@ -0,0 +1,5 @@
1
+---
2
+'@aws-amplify/cli-core': patch
3
4
+
5
+After clearing console, move the cursor to the top of terminal
packages/cli-core/src/printer/printer.ts
@@ -181,9 +181,12 @@ export class Printer {
181
* Clears the console
182
*/
183
clearConsole = () => {
184
- if (this.ttyEnabled) {
185
- this.stdout.write('\n'.repeat(process.stdout.rows));
+ if (!this.ttyEnabled) {
+ return;
186
}
187
+ const lines = process.stdout.rows;
188
+ this.stdout.write('\n'.repeat(process.stdout.rows));
189
+ process.stdout.moveCursor(0, -lines);
190
};
191
192
private stringify = (msg: unknown): string => {
0 commit comments