void os_set_cursor(int, int);
void os_set_font(int);
void os_set_text_style(int);
+int os_get_text_style(void);
void os_start_sample(int, int, int, zword);
void os_stop_sample(int);
int os_storyfile_seek(FILE *, long, int);
if (u_setup.curses_active) {
os_beep(BEEP_HIGH);
- style = u_setup.current_text_style;
+ style = os_get_text_style();
os_set_text_style(BOLDFACE_STYLE);
print_c_string("Warning: ");
- print_c_string(errorstring);
os_set_text_style(NORMAL_STYLE);
+ print_c_string(errorstring);
new_line();
os_set_text_style(style);
} else
style = u_setup.current_text_style;
os_set_text_style(BOLDFACE_STYLE);
print_c_string("Fatal error: ");
- os_set_text_style(style);
+ os_set_text_style(NORMAL_STYLE);
print_c_string(errorstring);
print_c_string("\n");
new_line();
+ os_set_text_style(style);
if (f_setup.ignore_errors) {
print_c_string("Continuing anyway...");
new_line();
} /* os_set_colour */
+/*
+ * os_get_text_style
+ *
+ * Return the current text style. Following flags can be set:
+ *
+ * REVERSE_STYLE
+ * BOLDFACE_STYLE
+ * EMPHASIS_STYLE (aka underline aka italics)
+ * FIXED_WIDTH_STYLE
+ *
+ */
+int os_get_text_style (void)
+{
+ return u_setup.current_text_style;
+} /* os_get_text_style */
+
/*
* os_set_text_style
*