term: Misc minor bug fixes
diff --git a/common/drivers/vga_textmode.c b/common/drivers/vga_textmode.c
index aae281c5..852d82ee 100644
--- a/common/drivers/vga_textmode.c
+++ b/common/drivers/vga_textmode.c
@@ -310,7 +310,7 @@ void vga_textmode_init(bool managed) {
text_double_buffer_flush(term);
- if (serial) {
+ if (managed && serial) {
term->cols = term->cols > 80 ? 80 : term->cols;
term->rows = term->rows > 24 ? 24 : term->rows;
} else {
diff --git a/common/lib/gterm.c b/common/lib/gterm.c
index 3244b4fb..de88337f 100644
--- a/common/lib/gterm.c
+++ b/common/lib/gterm.c
@@ -242,6 +242,7 @@ bool gterm_init(char *config, size_t width, size_t height) {
return false;
last_serial = serial;
+ last_config = config;
// default scheme
margin = 64;
@@ -435,11 +436,13 @@ no_load_font:;
term->rows = term->rows > 24 ? 24 : term->rows;
}
+ term->in_bootloader = true;
+
term_context_reinit(term);
- term_backend = GTERM;
+ term->full_refresh(term);
- term->in_bootloader = true;
+ term_backend = GTERM;
return true;
}
