From 0caa0d9b291a71019ac516e73b7ac285e40b6851 Mon Sep 17 00:00:00 2001 From: pkova Date: Mon, 18 May 2026 16:56:09 +0300 Subject: [PATCH] term: fix terminal jumping around during initial boot --- pkg/vere/io/term.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/vere/io/term.c b/pkg/vere/io/term.c index d930e1d43f..4fbb60d927 100644 --- a/pkg/vere/io/term.c +++ b/pkg/vere/io/term.c @@ -1454,7 +1454,7 @@ u3_term_io_hija(void) { u3_utty* uty_u = _term_main(); - if ( uty_u && uty_u->tat_u.siz.row_l ) { + if ( uty_u && uty_u->tat_u.siz.row_l && u3_nul != uty_u->tat_u.mir.lin ) { if ( uty_u->fid_i > 2 ) { // We *should* in fact, produce some kind of fake FILE* for // non-console terminals. If we use this interface enough... @@ -1485,7 +1485,7 @@ u3_term_io_loja(int x, FILE* f) { u3_utty* uty_u = _term_main(); - if ( uty_u && uty_u->tat_u.siz.row_l ) { + if ( uty_u && uty_u->tat_u.siz.row_l && u3_nul != uty_u->tat_u.mir.lin ) { if ( uty_u->fid_i > 2 ) { // We *should* in fact, produce some kind of fake FILE* for // non-console terminals. If we use this interface enough...