Make control-c exit when in more compatability mode.
Submitted by: Scott Long <samsco@mho.com>
This commit is contained in:
parent
2931df8a40
commit
51525cb020
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=63120
@ -8,6 +8,7 @@
|
||||
* contact the author, see the README file.
|
||||
*/
|
||||
|
||||
/* $FreeBSD$ */
|
||||
|
||||
/*
|
||||
* Routines dealing with signals.
|
||||
@ -33,6 +34,7 @@ extern int lnloop;
|
||||
extern int linenums;
|
||||
extern int wscroll;
|
||||
extern int reading;
|
||||
extern int more_mode;
|
||||
|
||||
/*
|
||||
* Interrupt signal handler.
|
||||
@ -56,6 +58,8 @@ u_interrupt(type)
|
||||
if (kbhit())
|
||||
getkey();
|
||||
#endif
|
||||
if (more_mode)
|
||||
quit(0);
|
||||
if (reading)
|
||||
intread();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user