Skip to content
Snippets Groups Projects
Commit b06f9109 authored by deuce's avatar deuce
Browse files

Copy console size into the dk object as well during startup.

parent a142c89b
No related branches found
No related tags found
No related merge requests found
......@@ -69,6 +69,12 @@ dk.connection.telnet = client.protocol === 'Telnet';
// From the console object
dk.user.ansi_supported = (console.autoterm & USER_ANSI) == USER_ANSI;
if (console.screen_rows != dk.console.rows || console.screen_columns != dk.console.cols) {
dk.console.rows = console.screen_rows;
dk.console.cols = console.screen_columns;
dk.console.remote_screen = new Screen(dk.console.cols, dk.console.rows, 7, ' ');
dk.console.local_screen = new Screen(dk.console.cols, dk.console.rows, 7, ' ');
}
// From the user object...
dk.user.full_name = user.name;
......@@ -111,3 +117,4 @@ dk.system.default_attr = undefined;
// TODO: Next event time...
dk.system.event_time = undefined;
dk.system.record_locking = true;
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