Skip to content

Commit 7af7eac

Browse files
committed
revert previous terminal change
- i just have never had time to properly understand this. so many things to do...
1 parent 7bbce23 commit 7af7eac

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/packages/frontend/frame-editors/terminal-editor/connected-terminal.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -707,12 +707,6 @@ export class Terminal<T extends CodeEditorState = CodeEditorState> {
707707

708708
init_terminal_data(): void {
709709
this.terminal.onData((data) => {
710-
if (data == "\x1B[>0;276;0c") {
711-
// this is a request for term capabilities, sending it just ends up
712-
// not helping and putting "control codes" that users see in the terminal,
713-
// which is very bad. So we ignore them.
714-
return;
715-
}
716710
if (this.ignore_terminal_data && this.conn?.state == "init") {
717711
return;
718712
}

src/packages/frontend/frame-editors/terminal-editor/nats-terminal-connection.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,9 @@ export class NatsTerminalConnection extends EventEmitter {
242242
};
243243

244244
private setReady = async () => {
245+
// wait until after render loop of terminal before allowing writing,
246+
// or we get corruption.
247+
await delay(500);
245248
this.setState("running");
246249
this.emit("ready");
247250
};

0 commit comments

Comments
 (0)