1 #if !defined(lint) && !defined(DOS)
2 static char rcsid
[] = "$Id: status.c 1142 2008-08-13 17:22:21Z hubert@u.washington.edu $";
5 /* ========================================================================
6 * Copyright 2006-2007 University of Washington
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * ========================================================================
17 /*======================================================================
19 Functions that manage the status line (third from the bottom)
20 - put messages on the queue to be displayed
21 - display messages on the queue with timers
22 - check queue to figure out next timeout
23 - prompt for yes/no type of questions
29 #include "../../../pith/status.h"
30 #include "../../../pith/helptext.h"
31 #include "../../../pith/debug.h"
32 #include "../../../pith/string.h"
39 /*----------------------------------------------------------------------
40 Put a message for the status line on the queue
43 q_status_message(int flags
, int min_time
, int max_time
, char *message
)
45 if(!(flags
& SM_INFO
))
46 sml_addmsg(0, message
);
50 /*----------------------------------------------------------------------
51 Time remaining for current message's minimum display
54 status_message_remaining(void)
61 /*----------------------------------------------------------------------
62 Update status line, clearing or displaying a message
63 ----------------------------------------------------------------------*/
65 display_message(UCS command
)
72 /*----------------------------------------------------------------------
73 Display all the messages on the queue as quickly as possible
76 flush_status_messages(int skip_last_pause
)