| 1 | /*---------------------------------------------------------------------------- |
| 2 | ChucK Strongly-timed Audio Programming Language |
| 3 | Compiler, Virtual Machine, and Synthesis Engine |
| 4 | |
| 5 | Copyright (c) 2003 Ge Wang and Perry R. Cook. All rights reserved. |
| 6 | http://chuck.stanford.edu/ |
| 7 | http://chuck.cs.princeton.edu/ |
| 8 | |
| 9 | This program is free software; you can redistribute it and/or modify |
| 10 | it under the dual-license terms of EITHER the MIT License OR the GNU |
| 11 | General Public License (the latter as published by the Free Software |
| 12 | Foundation; either version 2 of the License or, at your option, any |
| 13 | later version). |
| 14 | |
| 15 | This program is distributed in the hope that it will be useful and/or |
| 16 | interesting, but WITHOUT ANY WARRANTY; without even the implied warranty |
| 17 | of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 | MIT Licence and/or the GNU General Public License for details. |
| 19 | |
| 20 | You should have received a copy of the MIT License and the GNU General |
| 21 | Public License (GPL) along with this program; a copy of the GPL can also |
| 22 | be obtained by writing to the Free Software Foundation, Inc., 59 Temple |
| 23 | Place, Suite 330, Boston, MA 02111-1307 U.S.A. |
| 24 | -----------------------------------------------------------------------------*/ |
| 25 | |
| 26 | //----------------------------------------------------------------------------- |
| 27 | // file: util_console.h |
| 28 | // desc: utility for console I/O |
| 29 | // |
| 30 | // author: Spencer Salazar ([email protected]) |
| 31 | // date: Autumn 2005 |
| 32 | //----------------------------------------------------------------------------- |
| 33 | #ifndef __UTIL_CONSOLE_H__ |
| 34 | #define __UTIL_CONSOLE_H__ |
| 35 | |
| 36 | #include "chuck_def.h" |
| 37 | |
| 38 | // read a line |
| 39 | char * io_readline( const char * ); |
| 40 | |
| 41 | // add a line to the history |
| 42 | void io_addhistory( const char * ); |
| 43 | |
| 44 | // kb hit emulation |
| 45 | t_CKBOOL kb_initscr(); |
| 46 | void kb_endwin(); |
| 47 | t_CKINT kb_hit(); |
| 48 | t_CKINT kb_getch(); |
| 49 | t_CKBOOL kb_ready(); |
| 50 | |
| 51 | |
| 52 | #endif |