diff options
author | Mike Banon <mikebdp2@gmail.com> | 2018-02-23 19:42:40 +0300 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-06-07 06:45:10 +0000 |
commit | 9829b6f4081da1e64333e67b7866efb9c14fe648 (patch) | |
tree | 34f046885c4c5cc83382c6cfa3bb180d9f7e5024 /payloads/external | |
parent | f8b54b6315af42bed685037f494fd71d825b5e8b (diff) |
tint: fix the "Paused - Press any key to continue" message for pause
Earlier this message has not been shown even at the corner of screen.
This fixes it by refreshing the screen, and moves it to the center.
Change-Id: If4e33e884c00c17f19ab330167d9293c8396ff3e
Signed-off-by: Mike Banon <mikebdp2@gmail.com>
Reviewed-on: https://review.coreboot.org/23854
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'payloads/external')
-rw-r--r-- | payloads/external/tint/libpayload_tint.patch | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/payloads/external/tint/libpayload_tint.patch b/payloads/external/tint/libpayload_tint.patch index a21eabf962..bb197181bc 100644 --- a/payloads/external/tint/libpayload_tint.patch +++ b/payloads/external/tint/libpayload_tint.patch @@ -376,7 +376,25 @@ diff -rupN tint-0.04+nmu1/tint.c tint/tint.c rand_init (); /* must be called before engine_init () */ engine_init (&engine,score_function); /* must be called before using engine.curshape */ finished = shownext = FALSE; -@@ -673,11 +692,31 @@ int main (int argc,char *argv[]) +@@ -632,13 +651,15 @@ int main (int argc,char *argv[]) + /* pause */ + case 'p': + out_setcolor (COLOR_WHITE,COLOR_BLACK); +- out_gotoxy ((out_width () - 34) / 2,out_height () - 2); ++ out_gotoxy ((out_width () - 34) / 2,out_height () / 2); + out_printf ("Paused - Press any key to continue"); ++ refresh (); + while ((ch = in_getch ()) == ERR) ; /* Wait for a key to be pressed */ + in_flush (); /* Clear keyboard buffer */ +- out_gotoxy ((out_width () - 34) / 2,out_height () - 2); ++ out_gotoxy ((out_width () - 34) / 2,out_height () / 2); + out_printf (" "); ++ refresh (); + break; + /* unknown keypress */ + default: + out_beep (); +@@ -673,11 +694,31 @@ int main (int argc,char *argv[]) /* Restore console settings and exit */ io_close (); +#if 0 |