diff options
author | Nayeem Rahman <muhammed.9939@gmail.com> | 2019-12-21 08:58:28 +0000 |
---|---|---|
committer | Ry Dahl <ry@tinyclouds.org> | 2019-12-21 03:58:28 -0500 |
commit | f4f4c6bcb435ffb7e1dd9383d8d39e9e36b1337a (patch) | |
tree | d21db1718e2715fd6c7e160ed6dec15eeeebacee /cli/js/console.ts | |
parent | 80da2ac8dea9f2e77bd81273530b8f7ff42d8a93 (diff) |
fix: Use sync ops when clearing the console (#3533)
Diffstat (limited to 'cli/js/console.ts')
-rw-r--r-- | cli/js/console.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/js/console.ts b/cli/js/console.ts index adebd729f..216741a5e 100644 --- a/cli/js/console.ts +++ b/cli/js/console.ts @@ -40,12 +40,12 @@ export class CSI { function cursorTo(stream: File, _x: number, _y?: number): void { const uint8 = new TextEncoder().encode(CSI.kClear); - stream.write(uint8); + stream.writeSync(uint8); } function clearScreenDown(stream: File): void { const uint8 = new TextEncoder().encode(CSI.kClearScreenDown); - stream.write(uint8); + stream.writeSync(uint8); } function getClassInstanceName(instance: unknown): string { |