Added the `saver' key definition. The saver key will activate the screen
saver if one is loaded.
This commit is contained in:
parent
88a5f0cca7
commit
28d2c691c0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=38053
@ -28,7 +28,7 @@
|
||||
|
||||
#ifndef lint
|
||||
static const char rcsid[] =
|
||||
"$Id: kbdcontrol.c,v 1.14 1998/05/05 19:02:01 des Exp $";
|
||||
"$Id: kbdcontrol.c,v 1.15 1998/08/03 09:12:39 yokota Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <ctype.h>
|
||||
@ -178,6 +178,8 @@ get_entry()
|
||||
return DBG | 0x100;
|
||||
case TSUSP:
|
||||
return SUSP | 0x100;
|
||||
case TSPSC:
|
||||
return SPSC | 0x100;
|
||||
case TACC:
|
||||
if (ACC(number) > L_ACC)
|
||||
return -1;
|
||||
@ -382,6 +384,9 @@ print_entry(FILE *fp, int value)
|
||||
case SUSP | 0x100:
|
||||
fprintf(fp, " susp ");
|
||||
break;
|
||||
case SPSC | 0x100:
|
||||
fprintf(fp, " saver ");
|
||||
break;
|
||||
default:
|
||||
if (value & 0x100) {
|
||||
if (val >= F_FN && val <= L_FN)
|
||||
@ -548,6 +553,9 @@ dump_entry(int value)
|
||||
case SUSP:
|
||||
printf(" SUSP, ");
|
||||
break;
|
||||
case SPSC:
|
||||
printf(" SPSC, ");
|
||||
break;
|
||||
default:
|
||||
if (value >= F_FN && value <= L_FN)
|
||||
printf(" F(%2d),", value - F_FN + 1);
|
||||
|
@ -25,7 +25,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: lex.h,v 1.4 1997/02/22 16:05:57 peter Exp $
|
||||
* $Id: lex.h,v 1.5 1998/01/07 08:43:27 yokota Exp $
|
||||
*/
|
||||
|
||||
#define TNOP 256
|
||||
@ -52,6 +52,7 @@
|
||||
#define TBTAB 277
|
||||
#define TSUSP 278
|
||||
#define TACC 279
|
||||
#define TSPSC 280
|
||||
|
||||
extern int number;
|
||||
extern char letter;
|
||||
|
@ -25,7 +25,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: lex.l,v 1.5 1997/02/22 16:05:58 peter Exp $
|
||||
* $Id: lex.l,v 1.6 1998/01/07 08:43:28 yokota Exp $
|
||||
*/
|
||||
|
||||
%{
|
||||
@ -59,6 +59,7 @@ meta { return TMETA; }
|
||||
boot { return TRBT; }
|
||||
debug { return TDBG; }
|
||||
susp { return TSUSP; }
|
||||
saver { return TSPSC; }
|
||||
|
||||
NUL|nul { number = 0; return TNUM; }
|
||||
SOH|soh { number = 1; return TNUM; }
|
||||
|
Loading…
Reference in New Issue
Block a user