summaryrefslogtreecommitdiff
path: root/src/fe-text/irssi.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-10-28 11:30:26 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-10-28 11:30:26 +0000
commit2ba339a26bc02bf4caa92e735ba79bd0dcc76a9f (patch)
treec5bdd6b1e1dfe58f3f7cc279cbdf9392578c699a /src/fe-text/irssi.c
parent8567481fd058a9f66c76a55e02305c97153b7588 (diff)
downloadirssi-2ba339a26bc02bf4caa92e735ba79bd0dcc76a9f.zip
Added support for using terminfo/termcap instead of curses. By default,
configure chooses to use ncurses if found, of terminfo if only curses was found. --with-terminfo parameter can be used to specify if you want it or not. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1924 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/irssi.c')
-rw-r--r--src/fe-text/irssi.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/fe-text/irssi.c b/src/fe-text/irssi.c
index 543972fc..e625e595 100644
--- a/src/fe-text/irssi.c
+++ b/src/fe-text/irssi.c
@@ -32,7 +32,7 @@
#include "fe-common-irc.h"
#include "themes.h"
-#include "screen.h"
+#include "term.h"
#include "gui-entry.h"
#include "mainwindows.h"
#include "gui-printtext.h"
@@ -91,8 +91,8 @@ static void sig_exit(void)
/* redraw irssi's screen.. */
void irssi_redraw(void)
{
- screen_clear();
- screen_refresh(NULL);
+ term_clear();
+ term_refresh(NULL);
/* windows */
mainwindows_redraw();
@@ -116,7 +116,7 @@ static void textui_finish_init(void)
{
quitting = FALSE;
- screen_refresh_freeze();
+ term_refresh_freeze();
textbuffer_init();
textbuffer_view_init();
textbuffer_commands_init();
@@ -130,7 +130,7 @@ static void textui_finish_init(void)
mainwindows_layout_init();
gui_windows_init();
statusbar_init();
- screen_refresh_thaw();
+ term_refresh_thaw();
settings_check();
module_register("core", "fe-text");
@@ -155,7 +155,7 @@ static void textui_deinit(void)
quitting = TRUE;
signal(SIGINT, SIG_DFL);
- screen_refresh_freeze();
+ term_refresh_freeze();
while (modules != NULL)
module_unload(modules->data);
@@ -180,8 +180,8 @@ static void textui_deinit(void)
textbuffer_view_deinit();
textbuffer_deinit();
- screen_refresh_thaw();
- deinit_screen();
+ term_refresh_thaw();
+ term_deinit();
theme_unregister();
@@ -274,7 +274,7 @@ int main(int argc, char **argv)
textui_init();
args_execute(argc, argv);
- if (!init_screen())
+ if (!term_init())
g_error("Can't initialize screen handling, quitting.\n");
textui_finish_init();