mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-22 12:51:23 +03:00
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
This commit is contained in:
parent
3dfc879f63
commit
2d825bae79
@ -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:
|
||||
|
12
src/nano.c
12
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);
|
||||
|
Loading…
Reference in New Issue
Block a user