mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 22:32:43 -04:00
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
1 changed files with 4 additions and 0 deletions
|
|
@ -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 a new issue