alt.org stuff - Problems with this forum or with alt.org in general?
 
User: [Log In] [Create A New Profile]
Actions: [New Topic] [Print View] [RSS]
Search
Path: [NAO] [Forums] [alt.org stuff]
Topic:
Graphical clients and vt_tiledata option (3 Posts)
Started By:
Date:
September 22, 2010 04:14PM

Graphical clients and vt_tiledata option
paxed - September 22, 2010 04:14PM
 
To make it easier to develop external, graphical clients, I've added an option for NetHack to output extra data in the stream. To use it, set "vt_tiledata" in the options.

When the option is on, NetHack will output escape codes in the form "ESC [ ... z", which (should) be ignored by most normal terminals.

Currently used codes:
  • "ESC [ 0 ; n z": Start a glyph (aka a tile) number n.
  • "ESC [ 1 z": End a glyph.
  • "ESC [ 2 ; n z": Select a window n to output to.
  • "ESC [ 3 z": End of data. (NetHack has finished sending data to you, for now)

Whenever NetHack outputs anything, it will first output the select window code.

Whenever NetHack outputs a tile, it will first output the start glyph code, then the escape codes for color and the glyph character itself, and then the end glyph code.

-- 
You( "are momentarily disoriented." );



Edited 1 time(s). Last edit at 08/15/2011 07:36PM by paxed.
 

Re: Graphical clients and vt_tiledata option
Kerio - October 17, 2010 08:17AM
 
Can we have a "requesting input" code? That would help botwriters so much.
 

Re: Graphical clients and vt_tiledata option
paxed - October 31, 2010 06:04PM
 
Kerio Wrote:
-------------------------------------------------------
> Can we have a "requesting input" code? That would
> help botwriters so much.

I'll put that into the TODO and see how easy it would be to implement.

-- 
You( "are momentarily disoriented." );
 

Go to Topic: [Previous] [Next]