tTidied up nice_wait subroutine; it now uses mvaddcentstr to display the centred message. - vaccinewars - be a doctor and try to vaccinate the world
(HTM) git clone git://src.adamsgaard.dk/vaccinewars
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 8c093126e4c298561cb3094be900d2f90d3d3054
(DIR) parent 2e5bdc847b60ceaa12ec1c168aff50c4bd4bc49a
(HTM) Author: Ben Webb <ben@salilab.org>
Date: Sat, 4 Jan 2003 19:38:26 +0000
Tidied up nice_wait subroutine; it now uses mvaddcentstr to display the
centred message.
Diffstat:
M src/curses_client/curses_client.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
---
(DIR) diff --git a/src/curses_client/curses_client.c b/src/curses_client/curses_client.c
t@@ -1581,11 +1581,8 @@ void clear_screen(void)
*/
void nice_wait()
{
- gchar *text;
-
attrset(PromptAttr);
- text = _("Press any key...");
- mvaddstr(23, (Width - strlen(text)) / 2, text);
+ mvaddcentstr(23, _("Press any key..."));
bgetch();
attrset(TextAttr);
}