summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/console.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/console.c b/src/core/console.c
index 5f3c28d84..141d8f0f0 100644
--- a/src/core/console.c
+++ b/src/core/console.c
@@ -10,6 +10,12 @@ FILE_LICENCE ( GPL2_OR_LATER );
/** Current console usage */
int console_usage = CONSOLE_USAGE_STDOUT;
+/** Console width */
+unsigned int console_width = CONSOLE_DEFAULT_WIDTH;
+
+/** Console height */
+unsigned int console_height = CONSOLE_DEFAULT_HEIGHT;
+
/**
* Write a single character to each console device
*
@@ -138,6 +144,9 @@ int console_configure ( struct console_configuration *config ) {
struct console_driver *console;
int rc;
+ /* Reset console width and height */
+ console_set_size ( CONSOLE_DEFAULT_WIDTH, CONSOLE_DEFAULT_HEIGHT );
+
/* Try to configure each console */
for_each_table_entry ( console, CONSOLES ) {
if ( ( console->configure ) &&