From 28580ca0236a15e1005fa52b17e8f1f5eca90dd1 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Tue, 2 Jun 2009 23:41:40 +0400 Subject: [PATCH] done_screen() is moved from src/layout.c to src/main.c. --- src/layout.c | 11 ----------- src/layout.h | 1 - src/main.c | 11 +++++++++++ 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/src/layout.c b/src/layout.c index 5b364ba00..85b4820f9 100644 --- a/src/layout.c +++ b/src/layout.c @@ -574,17 +574,6 @@ clr_scr (void) tty_refresh (); } -void -done_screen () -{ - if (!(quit & SUBSHELL_EXIT)) - clr_scr (); - tty_reset_shell_mode (); - tty_noraw_mode (); - tty_keypad (FALSE); - tty_colors_done (); -} - static void panel_do_cols (int index) { diff --git a/src/layout.h b/src/layout.h index 5d543264c..b39082a77 100644 --- a/src/layout.h +++ b/src/layout.h @@ -10,7 +10,6 @@ #include "widget.h" void layout_cmd (void); -void done_screen (void); void setup_panels (void); void destroy_panels (void); void move_resize_panel (void); diff --git a/src/main.c b/src/main.c index dc95d8f9c..7b2a1d8b2 100644 --- a/src/main.c +++ b/src/main.c @@ -1524,6 +1524,17 @@ static void check_codeset() #endif /* HAVE_CHARSET */ } +static void +done_screen (void) +{ + if (!(quit & SUBSHELL_EXIT)) + clr_scr (); + tty_reset_shell_mode (); + tty_noraw_mode (); + tty_keypad (FALSE); + tty_colors_done (); +} + static void done_mc (void) {