- nano.c:do_suspend() - Call tcsetattr() to restore the old terminal settings, so tcsh can use ^C after suspend for example (fixes BUG #67)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@992 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Этот коммит содержится в:
родитель
967a1e28f6
Коммит
7b0667fa7a
2
BUGS
2
BUGS
@ -127,6 +127,8 @@
|
|||||||
- When cutting marked text including the bottom of the file, a new
|
- When cutting marked text including the bottom of the file, a new
|
||||||
"magic line" is not created" (reported by David Lawrence
|
"magic line" is not created" (reported by David Lawrence
|
||||||
Ramsey, fixed by David Lawrence Ramsey & Chris) (66) [FIXED].
|
Ramsey, fixed by David Lawrence Ramsey & Chris) (66) [FIXED].
|
||||||
|
- ^C does not work after a suspend in tcsh (discovered by
|
||||||
|
Trevor Cordes) (67) [FIXED].
|
||||||
|
|
||||||
** Open BUGS **
|
** Open BUGS **
|
||||||
|
|
||||||
|
@ -13,6 +13,9 @@ CVS code -
|
|||||||
main()
|
main()
|
||||||
- Check that alt value is an alpha char before comparing to
|
- Check that alt value is an alpha char before comparing to
|
||||||
val - 32, fixes Alt-R calling doprev instead of replace.
|
val - 32, fixes Alt-R calling doprev instead of replace.
|
||||||
|
do_suspend()
|
||||||
|
- Call tcsetattr() to restore the old terminal settings, so
|
||||||
|
tcsh can use ^C after suspend for example (fixes BUG #67).
|
||||||
- global.c:
|
- global.c:
|
||||||
shorcut_init()
|
shorcut_init()
|
||||||
- Replace hard coded ALT_G and ALT_H values in the replace
|
- Replace hard coded ALT_G and ALT_H values in the replace
|
||||||
|
3
nano.c
3
nano.c
@ -1938,6 +1938,9 @@ RETSIGTYPE do_suspend(int signal)
|
|||||||
printf("\n\n\n\n\nUse \"fg\" to return to nano\n");
|
printf("\n\n\n\n\nUse \"fg\" to return to nano\n");
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
|
/* Restore the terminal settings for the disabled keys */
|
||||||
|
tcsetattr(0, TCSANOW, &oldterm);
|
||||||
|
|
||||||
/* We used to re-enable the default SIG_DFL and raise SIGTSTP, but
|
/* We used to re-enable the default SIG_DFL and raise SIGTSTP, but
|
||||||
then we could be (and were) interrupted in the middle of the call.
|
then we could be (and were) interrupted in the middle of the call.
|
||||||
So we do it the mutt way instead */
|
So we do it the mutt way instead */
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user