Commit 2d825bae authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

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
No related merge requests found
Showing with 13 additions and 3 deletions
+13 -3
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:
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment