1 /* NetHack 3.6 amitty.c $NHDT-Date: 1432512795 2015/05/25 00:13:15 $ $NHDT-Branch: master $:$NHDT-Revision: 1.7 $ */
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 */
38 iflags
.cbreak
= ON
; /* this is too easy: probably wrong */
39 #if 1 /* should be version>=36 */
40 /* if(IsInteractive(afh_in)){ */
41 SetMode(afh_in
, 0); /* con mode */
48 #if 1 /* should be VERSION >=36 */
49 /* if(IsInteractive(afh_in)){ */
50 SetMode(afh_in
, 1); /* raw mode */
57 iflags
.cbreak
= ON
; /* ditto */
59 char kill_char
= 'X' - '@';
60 char erase_char
= '\b';
65 return (x
== '\r') ? '\n' : x
;
81 tty_get_color_string()