version 1.10, 1995/10/16 18:33:10
|
version 1.13, 1996/01/07 17:22:11
|
Line 1
|
Line 1
|
/* direct key io driver |
/* direct key io driver; signal handler |
|
|
The following is stolen from the readline library for bash |
Copyright (C) 1995 Free Software Foundation, Inc. |
|
|
|
This file is part of Gforth. |
|
|
|
Gforth is free software; you can redistribute it and/or |
|
modify it under the terms of the GNU General Public License |
|
as published by the Free Software Foundation; either version 2 |
|
of the License, or (at your option) any later version. |
|
|
|
This program is distributed in the hope that it will be useful, |
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
GNU General Public License for more details. |
|
|
|
You should have received a copy of the GNU General Public License |
|
along with this program; if not, write to the Free Software |
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
|
|
|
The following is stolen from the readline library for bash |
*/ |
*/ |
|
|
/* |
/* |
Use -D_POSIX_VERSION for POSIX systems. |
Use -D_POSIX_VERSION for POSIX systems. |
*/ |
*/ |
|
|
|
#include "config.h" |
#include <unistd.h> |
#include <unistd.h> |
|
|
#ifdef apollo |
#ifdef apollo |
Line 164 static int eof_char = CTRL ('D');
|
Line 183 static int eof_char = CTRL ('D');
|
/* **************************************************************** */ |
/* **************************************************************** */ |
|
|
/* Non-zero means that the terminal is in a prepped state. */ |
/* Non-zero means that the terminal is in a prepped state. */ |
static int terminal_prepped = 0; |
int terminal_prepped = 0; |
|
|
#if defined (NEW_TTY_DRIVER) |
#if defined (NEW_TTY_DRIVER) |
|
|