commit 2d825bae79d47e155e4fe9f21bf3866a3079ee92
parent 3dfc879f636bccc1715a7796c15767e64891ea58
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Sun, 20 Mar 2005 21:20:47 +0000
after (re)initializing the terminal, make sure the cursor is always
turned on
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2406 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,4 +1,8 @@
CVS code -
+- General:
+ - After (re)initializing the terminal, make sure the cursor is
+ always turned on. Changes to do_alt_speller(),
+ handle_sigwinch(), and main(). (DLR)
GNU nano 1.3.6 - 2005.03.20
- General:
diff --git a/src/nano.c b/src/nano.c
@@ -2196,6 +2196,9 @@ const char *do_alt_speller(char *tempfile_name)
/* Restore the terminal to its previous state. */
terminal_init();
+ /* Turn the cursor back on for sure. */
+ curs_set(1);
+
#ifndef NANO_SMALL
if (old_mark_set) {
size_t part_totsize;
@@ -3439,6 +3442,9 @@ void handle_sigwinch(int s)
/* Restore the terminal to its previous state. */
terminal_init();
+ /* Turn the cursor back on for sure. */
+ curs_set(1);
+
/* Do the equivalent of what both mutt and Minimum Profit do:
* Reinitialize all the windows based on the new screen
* dimensions. */
@@ -3449,9 +3455,6 @@ void handle_sigwinch(int s)
currshortcut = main_list;
total_refresh();
- /* Turn the cursor back on for sure. */
- curs_set(1);
-
/* Reset all the input routines that rely on character sequences. */
reset_kbinput();
@@ -4340,6 +4343,9 @@ int main(int argc, char **argv)
initscr();
terminal_init();
+ /* Turn the cursor on for sure. */
+ curs_set(1);
+
/* Set up the global variables and the shortcuts. */
global_init(FALSE);
shortcut_init(FALSE);