From 81af688a01d5a7aab89621757f8b01b7dc881638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20Israelson?= <57065102+israpps@users.noreply.github.com> Date: Tue, 2 Jul 2024 11:38:37 -0300 Subject: [PATCH] [src_printf]: implement `\r` could be useful --- ee/debug/src/scr_printf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ee/debug/src/scr_printf.c b/ee/debug/src/scr_printf.c index e9fdc385dd9..2338811f077 100644 --- a/ee/debug/src/scr_printf.c +++ b/ee/debug/src/scr_printf.c @@ -299,6 +299,10 @@ void scr_vprintf(const char *format, va_list opt) X++; } break; + case '\r': + X = 0; + // scr_clearline(Y); //Should we clear the line? + break; default: scr_putchar(X * 7, Y * 8, fontcolor, c); X++;