File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
src/packages/frontend/frame-editors/terminal-editor Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -707,12 +707,6 @@ export class Terminal<T extends CodeEditorState = CodeEditorState> {
707
707
708
708
init_terminal_data ( ) : void {
709
709
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
- }
716
710
if ( this . ignore_terminal_data && this . conn ?. state == "init" ) {
717
711
return ;
718
712
}
Original file line number Diff line number Diff line change @@ -242,6 +242,9 @@ export class NatsTerminalConnection extends EventEmitter {
242
242
} ;
243
243
244
244
private setReady = async ( ) => {
245
+ // wait until after render loop of terminal before allowing writing,
246
+ // or we get corruption.
247
+ await delay ( 500 ) ;
245
248
this . setState ( "running" ) ;
246
249
this . emit ( "ready" ) ;
247
250
} ;
You can’t perform that action at this time.
0 commit comments