1 /* SCCS Id: @(#)amitty.c 3.2 2000/01/12
2 /* Copyright (c) Kenneth Lorber, Bethesda, Maryland 1993,1996 */
3 /* NetHack may be freely redistributed. See license for details. */
5 /* TTY-specific code for the Amiga
6 * This is still experimental.
8 * add real termcap handling - currently requires ANSI_DEFAULT
14 #include <proto/dos.h>
17 # define getch() getchar()
20 # include <clib/dos_protos.h>
23 void NDECL( tty_change_color );
24 char *NDECL( tty_get_color_string );
28 int amibbs=0; /* BBS mode */
29 char bbs_id[80]=""; /* BBS uid equivalent */
30 long afh_in, afh_out; /* BBS mode Amiga filehandles */
32 void settty(const char *s){
35 iflags.cbreak=ON; /* this is too easy: probably wrong */
36 #if 1 /* should be version>=36 */
37 /* if(IsInteractive(afh_in)){ */
38 SetMode(afh_in,0); /* con mode */
43 #if 1 /* should be VERSION >=36 */
44 /* if(IsInteractive(afh_in)){ */
45 SetMode(afh_in,1); /* raw mode */
50 iflags.cbreak=ON; /* ditto */
52 char kill_char='X'-'@';
57 return (x=='\r')?'\n':x;
66 void tty_change_color() {}
67 char *tty_get_color_string() { return( "" ); }