diff -c -r -Xexceptions pristine/nethack-3.4.3/include/config.h nethack-3.4.3/include/config.h *** pristine/nethack-3.4.3/include/config.h 2003-12-07 17:39:13.000000000 -0600 --- nethack-3.4.3/include/config.h 2005-01-26 12:36:10.000000000 -0600 *************** *** 48,53 **** --- 48,60 ---- /* #define GNOME_GRAPHICS */ /* Gnome interface */ /* #define MSWIN_GRAPHICS */ /* Windows NT, CE, Graphics */ + #define TTY_TILES_PATCH + #ifdef TTY_TILES_PATCH + #ifndef USE_TILES + #define USE_TILES + #endif + #endif + /* * Define the default window system. This should be one that is compiled * into your system (see defines above). Known window systems are: diff -c -r -Xexceptions pristine/nethack-3.4.3/include/flag.h nethack-3.4.3/include/flag.h *** pristine/nethack-3.4.3/include/flag.h 2003-12-07 17:39:13.000000000 -0600 --- nethack-3.4.3/include/flag.h 2005-01-25 11:49:20.000000000 -0600 *************** *** 164,169 **** --- 164,172 ---- boolean news; /* print news */ boolean window_inited; /* true if init_nhwindows() completed */ boolean vision_inited; /* true if vision is ready */ + #if defined(USE_TILES) && defined(TTY_GRAPHICS) + boolean vt_nethack; /* true if using telnet with tiles client */ + #endif boolean menu_tab_sep; /* Use tabs to separate option menu fields */ boolean menu_requested; /* Flag for overloaded use of 'm' prefix * on some non-move commands */ diff -c -r -Xexceptions pristine/nethack-3.4.3/src/Makefile nethack-3.4.3/src/Makefile *** pristine/nethack-3.4.3/src/Makefile 2005-01-26 12:45:21.000000000 -0600 --- nethack-3.4.3/src/Makefile 2005-01-24 21:29:38.000000000 -0600 *************** *** 172,178 **** # files for a straight tty port using no native windowing system WINTTYSRC = ../win/tty/getline.c ../win/tty/termcap.c ../win/tty/topl.c \ ../win/tty/wintty.c ! WINTTYOBJ = getline.o termcap.o topl.o wintty.o # # files for an X11 port # (tile.c is a generated source file) --- 172,178 ---- # files for a straight tty port using no native windowing system WINTTYSRC = ../win/tty/getline.c ../win/tty/termcap.c ../win/tty/topl.c \ ../win/tty/wintty.c ! WINTTYOBJ = getline.o termcap.o topl.o wintty.o tile.o # # files for an X11 port # (tile.c is a generated source file) diff -c -r -Xexceptions pristine/nethack-3.4.3/src/options.c nethack-3.4.3/src/options.c *** pristine/nethack-3.4.3/src/options.c 2003-12-07 17:39:13.000000000 -0600 --- nethack-3.4.3/src/options.c 2005-01-25 12:34:43.000000000 -0600 *************** *** 194,199 **** --- 194,204 ---- {"use_inverse", &iflags.wc_inverse, FALSE, SET_IN_GAME}, /*WC*/ #endif {"verbose", &flags.verbose, TRUE, SET_IN_GAME}, + #if defined(USE_TILES) && defined(TTY_GRAPHICS) + {"vt_nethack_tiles", &iflags.vt_nethack, FALSE, SET_IN_GAME }, + #else + {"vt_nethack_tiles", (boolean *)0, FALSE, SET_IN_FILE }, + #endif {"wraptext", &iflags.wc2_wraptext, FALSE, SET_IN_GAME}, {(char *)0, (boolean *)0, FALSE, 0} }; diff -c -r -Xexceptions pristine/nethack-3.4.3/win/tty/wintty.c nethack-3.4.3/win/tty/wintty.c *** pristine/nethack-3.4.3/win/tty/wintty.c 2003-12-07 17:39:14.000000000 -0600 --- nethack-3.4.3/win/tty/wintty.c 2005-01-25 12:27:30.000000000 -0600 *************** *** 8,13 **** --- 8,15 ---- * h+ 930227 */ + #define TILE_ANSI_COMMAND 'z' + #include "hack.h" #include "dlb.h" #ifdef SHORT_FILENAMES *************** *** 16,21 **** --- 18,27 ---- #include "patchlevel.h" #endif + #ifdef USE_TILES + extern short glyph2tile[]; + #endif + #ifdef TTY_GRAPHICS #ifdef MAC *************** *** 2427,2432 **** --- 2433,2443 ---- /* Move the cursor. */ tty_curs(window, x,y); + #ifdef USE_TILES + if (iflags.vt_nethack){ + printf("\033[%i%c",glyph2tile[glyph],TILE_ANSI_COMMAND); + } + #endif #ifndef NO_TERMS if (ul_hack && ch == '_') { /* non-destructive underscore */