summaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-04-06 23:21:18 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2012-04-06 23:23:58 +0200
commit1c442e6aefd8855cdeec776b0e4e604edf585884 (patch)
tree18b7a62118ce65473d3bd192b2c86a1954f42178 /src/utils.c
parentd0b0ed3c202c3212a65ba628026a53d9663fc2d7 (diff)
downloadcalcurse-1c442e6aefd8855cdeec776b0e4e604edf585884.zip
Miscellaneous small code cleanups
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/utils.c b/src/utils.c
index 3ee24e0..73c1eea 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -160,15 +160,22 @@ warnbox (const char *msg)
* Message texts for first line and second line are to be provided.
*/
void
-status_mesg (const char *mesg_line1, const char *mesg_line2)
+status_mesg (const char *msg1, const char *msg2)
{
wins_erase_status_bar ();
custom_apply_attr (win[STA].p, ATTR_HIGHEST);
- mvwprintw (win[STA].p, 0, 0, mesg_line1);
- mvwprintw (win[STA].p, 1, 0, mesg_line2);
+ mvwprintw (win[STA].p, 0, 0, msg1);
+ mvwprintw (win[STA].p, 1, 0, msg2);
custom_remove_attr (win[STA].p, ATTR_HIGHEST);
}
+/* Print a status message, followed by a "[y/n]" prompt. */
+void
+status_mesg_yesno (const char *msg)
+{
+ status_mesg (msg, "[y/n] ");
+}
+
/* Erase part of a window. */
void
erase_window_part (WINDOW *win, int first_col, int first_row, int last_col,