Add callback handler for clear command during execution

This commit is contained in:
Sebastian Serth
2021-08-29 14:56:46 +02:00
parent d5e771f46c
commit 858ccd128f

View File

@ -41,6 +41,7 @@ CodeOceanEditorWebsocket = {
this.initializeSocket(url);
this.websocket.on('input',this.showPrompt.bind(this));
this.websocket.on('write', this.printWebsocketOutput.bind(this));
this.websocket.on('clear', this.clearOutput.bind(this));
this.websocket.on('turtle', this.handleTurtleCommand.bind(this));
this.websocket.on('turtlebatch', this.handleTurtlebatchCommand.bind(this));
this.websocket.on('render', this.renderWebsocketOutput.bind(this));