clear_pane = function() edit.clear(Current_pane.editor_state) edit.clear(Current_pane.output_editor_state) Current_pane.canvas = nil end