summaryrefslogtreecommitdiff
path: root/ttyin.c
diff options
context:
space:
mode:
Diffstat (limited to 'ttyin.c')
-rw-r--r--ttyin.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ttyin.c b/ttyin.c
index 7a8364c8af5fd..58892e1456190 100644
--- a/ttyin.c
+++ b/ttyin.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 1984-2015 Mark Nudelman
+ * Copyright (C) 1984-2016 Mark Nudelman
*
* You may distribute under the terms of either the GNU General Public
* License or the Less License, as specified in the README file.
@@ -31,7 +31,7 @@ extern int utf_mode;
* Open keyboard for input.
*/
public void
-open_getchr(void)
+open_getchr()
{
#if MSDOS_COMPILER==WIN32C
/* Need this to let child processes inherit our console handle */
@@ -85,7 +85,7 @@ open_getchr(void)
* Close the keyboard.
*/
public void
-close_getchr(void)
+close_getchr()
{
#if MSDOS_COMPILER==WIN32C
SetConsoleMode((HANDLE)tty, console_mode);
@@ -97,7 +97,7 @@ close_getchr(void)
* Get a character from the keyboard.
*/
public int
-getchr(void)
+getchr()
{
char c;
int result;
@@ -135,8 +135,8 @@ getchr(void)
#if 0 /* allow entering arbitrary hex chars for testing */
/* ctrl-A followed by two hex chars makes a byte */
{
- int hex_in = 0;
- int hex_value = 0;
+ static int hex_in = 0;
+ static int hex_value = 0;
if (c == CONTROL('A'))
{
hex_in = 2;