clear_pane = function() Current_pane.editor_state.lines = {{data=''}} Current_pane.editor_state.screen_top1 = {line=1, pos=1} Current_pane.editor_state.cursor1 = {line=1, pos=1} Text.redraw_all(Current_pane.editor_state) end