Skip to content
Snippets Groups Projects
Commit 4c4d1d3c authored by echicken's avatar echicken
Browse files

Use scrollbox to display text files.

parent a06b067e
No related branches found
No related tags found
No related merge requests found
......@@ -309,11 +309,7 @@ function print_document(fn) {
state.item = next_link();
highlight(state.doc[state.item], state.item);
} else if (state.item_type == '0' || state.item_type == '6') {
console.write(format('\x1b[%s;%sr', 1, console.screen_rows));
console.clear(BG_BLACK|LIGHTGRAY);
console.printfile(fn);
console.pause();
go_back();
scrollbox.load(fn);
set_status('');
} else if (['4', '5', '9', 'g', 'I'].indexOf(state.item_type) > -1) {
reset_display();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment