1 /**********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12 ***********************************************************************/
15 #include <fc_config.h>
19 #include "climisc.h" /* for write_chatline_content */
26 /**************************************************************************
27 Appends the string to the chat output window. The string should be
28 inserted on its own line, although it will have no newline.
29 **************************************************************************/
30 void gui_real_output_window_append(const char *astring
,
31 const struct text_tag_list
*tags
,
37 /**************************************************************************
38 Get the text of the output window, and call write_chatline_content() to
40 **************************************************************************/
41 void log_output_window(void)
44 write_chatline_content(NULL
);
47 /**************************************************************************
48 Clear all text from the output window.
49 **************************************************************************/
50 void clear_output_window(void)
54 set_output_window_text(_("Cleared output window."));
58 /**************************************************************************
59 Got version message from metaserver thread.
60 **************************************************************************/
61 void gui_version_message(const char *vertext
)
63 output_window_append(ftc_client
, vertext
);