Updated License
This commit is contained in:
parent
ddebc53f98
commit
6315178cec
8
getch.c
8
getch.c
|
@ -1,3 +1,9 @@
|
|||
/***********************************************************************
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public *
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this *
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. *
|
||||
***********************************************************************/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <termios.h>
|
||||
#include <unistd.h>
|
||||
|
@ -8,7 +14,7 @@
|
|||
#include <glob.h>
|
||||
#include "getch.h"
|
||||
|
||||
// #define FKEY(k) ((k) >= KEY_F1 && (k) <= KEY_F10) || (k) == KEY_F12 || (k) == KEY_F11
|
||||
#define FKEY(k) ((k) >= KEY_F1 && (k) <= KEY_F10) || (k) == KEY_F12 || (k) == KEY_F11
|
||||
#define NOTNUMPAD(k) ((k) >= KEY_HOME && (k) <= KEY_DELETE)
|
||||
|
||||
#define EVENT_DEVICE_GLOB "/dev/input/by-path/*-event-kbd"
|
||||
|
|
5
getch.h
5
getch.h
|
@ -1,3 +1,8 @@
|
|||
/***********************************************************************
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public *
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this *
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. *
|
||||
***********************************************************************/
|
||||
|
||||
#ifndef GETCH_H
|
||||
#define GETCH_H
|
||||
|
|
Loading…
Reference in New Issue