[coreboot-gerrit] Change in coreboot[master]: tint: fix the "Paused - Press any key to continue" message for pause

Mike Banon (Code Review) gerrit at coreboot.org
Fri Feb 23 18:18:25 CET 2018


Mike Banon has uploaded this change for review. ( https://review.coreboot.org/23854


Change subject: tint: fix the "Paused - Press any key to continue" message for pause
......................................................................

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 at gmail.com>
---
M payloads/external/tint/libpayload_tint.patch
1 file changed, 19 insertions(+), 1 deletion(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/54/23854/1

diff --git a/payloads/external/tint/libpayload_tint.patch b/payloads/external/tint/libpayload_tint.patch
index a21eabf..bb19718 100644
--- a/payloads/external/tint/libpayload_tint.patch
+++ b/payloads/external/tint/libpayload_tint.patch
@@ -376,7 +376,25 @@
     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

-- 
To view, visit https://review.coreboot.org/23854
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: If4e33e884c00c17f19ab330167d9293c8396ff3e
Gerrit-Change-Number: 23854
Gerrit-PatchSet: 1
Gerrit-Owner: Mike Banon <mikebdp2 at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180223/01683367/attachment-0001.html>


More information about the coreboot-gerrit mailing list