--- gforth/Attic/io.c 1995/10/16 18:33:10 1.10 +++ gforth/Attic/io.c 1996/01/07 17:22:11 1.13 @@ -1,12 +1,31 @@ -/* 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. */ +#include "config.h" #include #ifdef apollo @@ -164,7 +183,7 @@ static int eof_char = CTRL ('D'); /* **************************************************************** */ /* 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)