Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Use sync ops when clearing the console #3533

Merged
merged 2 commits into from
Dec 21, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: Use sync ops when clearing the console
  • Loading branch information
nayeemrmn committed Dec 21, 2019
commit 437290d5b4c6d3809a44bd398d76129653701591
4 changes: 2 additions & 2 deletions cli/js/console.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down