From a471d628612b69f32a8ca393c49bcd732ecc8191 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 6 Sep 2024 18:08:49 +0200 Subject: [PATCH] screen_utils: eliminate MoveCursor() call --- src/screen_utils.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/screen_utils.cxx b/src/screen_utils.cxx index fa731fc9..5e9fa8d9 100644 --- a/src/screen_utils.cxx +++ b/src/screen_utils.cxx @@ -36,8 +36,7 @@ screen_getch(ScreenManager &screen, const char *prompt) noexcept SelectStyle(window, Style::STATUS_ALERT); window.Erase(); - window.MoveCursor({0, 0}); - window.String(prompt); + window.String({0, 0}, prompt); echo(); curs_set(1);