Added weather plugin info to readme, option to make the console not catch 'CTRL+C' on linux.

develop
Petr Mrázek 2011-08-18 22:09:30 +02:00
parent e901194daa
commit d2d4ce898d
4 changed files with 131 additions and 93 deletions

@ -222,9 +222,9 @@ This command will hide the whole map and then reveal all the tiles that have a p
ssense / stonesense
===================
This is an isometric visualizer that is runs in a second window.
An isometric visualizer that runs in a second window. This requires working graphics acceleration and at least a dual core CPU (otherwise it will slow down DF).
This requires working graphics acceleration, at least a dual core CPU (otherwise it will slow down DF) and on Linux, the allegro 5 libraries installed (look for 'allegro5' in your package manager app).
Unfortunately currently fails to run on Windows XP and most Linux distributions.
All the data resides in the 'stonesense' directory.
@ -277,5 +277,12 @@ Examples:
weather
=======
Lets you change the current weather to 'clear sky', 'rainy' or 'snowing'.
Fill those ponds without mucking around with dfliquids :D Rain can also stop brush fires.
Prints the current weather map by default.
Also lets you change the current weather to 'clear sky', 'rainy' or 'snowing'.
Options:
--------
:snow: make it snow everywhere.
:rain: make it rain.
:clear: clear the sky.

@ -318,7 +318,7 @@ ul.auto-toc {
<div class="section" id="introduction">
<h1><a class="toc-backref" href="#id5">Introduction</a></h1>
<h1><a class="toc-backref" href="#id6">Introduction</a></h1>
<p>DFHack is a Dwarf Fortress memory access library and a set of basic
tools that use it. Tools come in the form of plugins or (not yet)
external tools. It is an attempt to unite the various ways tools
@ -326,76 +326,79 @@ access DF memory and allow for easier development of new tools.</p>
<div class="contents topic" id="contents">
<p class="topic-title first">Contents</p>
<ul class="simple">
<li><a class="reference internal" href="#introduction" id="id5">Introduction</a></li>
<li><a class="reference internal" href="#getting-dfhack" id="id6">Getting DFHack</a></li>
<li><a class="reference internal" href="#compatibility" id="id7">Compatibility</a></li>
<li><a class="reference internal" href="#installation-removal" id="id8">Installation/Removal</a></li>
<li><a class="reference internal" href="#using-dfhack" id="id9">Using DFHack</a></li>
<li><a class="reference internal" href="#something-doesn-t-work-help" id="id10">Something doesn't work, help!</a></li>
<li><a class="reference internal" href="#commands" id="id11">Commands</a><ul>
<li><a class="reference internal" href="#autodump" id="id12">autodump</a><ul>
<li><a class="reference internal" href="#options" id="id13">Options</a></li>
<li><a class="reference internal" href="#introduction" id="id6">Introduction</a></li>
<li><a class="reference internal" href="#getting-dfhack" id="id7">Getting DFHack</a></li>
<li><a class="reference internal" href="#compatibility" id="id8">Compatibility</a></li>
<li><a class="reference internal" href="#installation-removal" id="id9">Installation/Removal</a></li>
<li><a class="reference internal" href="#using-dfhack" id="id10">Using DFHack</a></li>
<li><a class="reference internal" href="#something-doesn-t-work-help" id="id11">Something doesn't work, help!</a></li>
<li><a class="reference internal" href="#commands" id="id12">Commands</a><ul>
<li><a class="reference internal" href="#autodump" id="id13">autodump</a><ul>
<li><a class="reference internal" href="#options" id="id14">Options</a></li>
</ul>
</li>
<li><a class="reference internal" href="#cleanmap" id="id14">cleanmap</a></li>
<li><a class="reference internal" href="#cleanowned" id="id15">cleanowned</a><ul>
<li><a class="reference internal" href="#id1" id="id16">Options</a></li>
<li><a class="reference internal" href="#cleanmap" id="id15">cleanmap</a></li>
<li><a class="reference internal" href="#cleanowned" id="id16">cleanowned</a><ul>
<li><a class="reference internal" href="#id1" id="id17">Options</a></li>
</ul>
</li>
<li><a class="reference internal" href="#colonies" id="id17">colonies</a><ul>
<li><a class="reference internal" href="#id2" id="id18">Options</a></li>
<li><a class="reference internal" href="#colonies" id="id18">colonies</a><ul>
<li><a class="reference internal" href="#id2" id="id19">Options</a></li>
</ul>
</li>
<li><a class="reference internal" href="#deramp-by-zilpin" id="id19">deramp (by zilpin)</a></li>
<li><a class="reference internal" href="#dfusion" id="id20">dfusion</a><ul>
<li><a class="reference internal" href="#confirmed-working-dfusion-plugins" id="id21">Confirmed working DFusion plugins:</a></li>
<li><a class="reference internal" href="#deramp-by-zilpin" id="id20">deramp (by zilpin)</a></li>
<li><a class="reference internal" href="#dfusion" id="id21">dfusion</a><ul>
<li><a class="reference internal" href="#confirmed-working-dfusion-plugins" id="id22">Confirmed working DFusion plugins:</a></li>
</ul>
</li>
<li><a class="reference internal" href="#flows" id="id22">flows</a></li>
<li><a class="reference internal" href="#grow" id="id23">grow</a></li>
<li><a class="reference internal" href="#extirpate" id="id24">extirpate</a><ul>
<li><a class="reference internal" href="#id3" id="id25">Options</a></li>
<li><a class="reference internal" href="#flows" id="id23">flows</a></li>
<li><a class="reference internal" href="#grow" id="id24">grow</a></li>
<li><a class="reference internal" href="#extirpate" id="id25">extirpate</a><ul>
<li><a class="reference internal" href="#id3" id="id26">Options</a></li>
</ul>
</li>
<li><a class="reference internal" href="#immolate" id="id26">immolate</a></li>
<li><a class="reference internal" href="#liquids" id="id27">liquids</a></li>
<li><a class="reference internal" href="#mode" id="id28">mode</a></li>
<li><a class="reference internal" href="#forcepause" id="id29">forcepause</a></li>
<li><a class="reference internal" href="#die" id="id30">die</a></li>
<li><a class="reference internal" href="#probe" id="id31">probe</a></li>
<li><a class="reference internal" href="#prospector" id="id32">prospector</a><ul>
<li><a class="reference internal" href="#id4" id="id33">Options</a></li>
<li><a class="reference internal" href="#immolate" id="id27">immolate</a></li>
<li><a class="reference internal" href="#liquids" id="id28">liquids</a></li>
<li><a class="reference internal" href="#mode" id="id29">mode</a></li>
<li><a class="reference internal" href="#forcepause" id="id30">forcepause</a></li>
<li><a class="reference internal" href="#die" id="id31">die</a></li>
<li><a class="reference internal" href="#probe" id="id32">probe</a></li>
<li><a class="reference internal" href="#prospector" id="id33">prospector</a><ul>
<li><a class="reference internal" href="#id4" id="id34">Options</a></li>
</ul>
</li>
<li><a class="reference internal" href="#reveal" id="id34">reveal</a></li>
<li><a class="reference internal" href="#unreveal" id="id35">unreveal</a></li>
<li><a class="reference internal" href="#revtoggle" id="id36">revtoggle</a></li>
<li><a class="reference internal" href="#revflood" id="id37">revflood</a></li>
<li><a class="reference internal" href="#ssense-stonesense" id="id38">ssense / stonesense</a></li>
<li><a class="reference internal" href="#tubefill" id="id39">tubefill</a></li>
<li><a class="reference internal" href="#vdig" id="id40">vdig</a></li>
<li><a class="reference internal" href="#vdigx" id="id41">vdigx</a></li>
<li><a class="reference internal" href="#expdig" id="id42">expdig</a><ul>
<li><a class="reference internal" href="#patterns" id="id43">Patterns:</a></li>
<li><a class="reference internal" href="#filters" id="id44">Filters:</a></li>
<li><a class="reference internal" href="#examples" id="id45">Examples:</a></li>
<li><a class="reference internal" href="#reveal" id="id35">reveal</a></li>
<li><a class="reference internal" href="#unreveal" id="id36">unreveal</a></li>
<li><a class="reference internal" href="#revtoggle" id="id37">revtoggle</a></li>
<li><a class="reference internal" href="#revflood" id="id38">revflood</a></li>
<li><a class="reference internal" href="#ssense-stonesense" id="id39">ssense / stonesense</a></li>
<li><a class="reference internal" href="#tubefill" id="id40">tubefill</a></li>
<li><a class="reference internal" href="#vdig" id="id41">vdig</a></li>
<li><a class="reference internal" href="#vdigx" id="id42">vdigx</a></li>
<li><a class="reference internal" href="#expdig" id="id43">expdig</a><ul>
<li><a class="reference internal" href="#patterns" id="id44">Patterns:</a></li>
<li><a class="reference internal" href="#filters" id="id45">Filters:</a></li>
<li><a class="reference internal" href="#examples" id="id46">Examples:</a></li>
</ul>
</li>
<li><a class="reference internal" href="#weather" id="id47">weather</a><ul>
<li><a class="reference internal" href="#id5" id="id48">Options:</a></li>
</ul>
</li>
<li><a class="reference internal" href="#weather" id="id46">weather</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div class="section" id="getting-dfhack">
<h1><a class="toc-backref" href="#id6">Getting DFHack</a></h1>
<h1><a class="toc-backref" href="#id7">Getting DFHack</a></h1>
<p>The project is currently hosted on <a class="reference external" href="http://www.github.com/">github</a>, for both source and
binaries at <a class="reference external" href="http://github.com/peterix/dfhack">http://github.com/peterix/dfhack</a></p>
<p>Releases can be downloaded from here: <a class="reference external" href="https://github.com/peterix/dfhack/downloads">https://github.com/peterix/dfhack/downloads</a></p>
<p>All new releases are announced in the bay12 thread: <a class="reference external" href="http://tinyurl.com/dfhack-ng">http://tinyurl.com/dfhack-ng</a></p>
</div>
<div class="section" id="compatibility">
<h1><a class="toc-backref" href="#id7">Compatibility</a></h1>
<h1><a class="toc-backref" href="#id8">Compatibility</a></h1>
<p>DFHack works on Windows XP, Vista, 7 or any modern Linux distribution.
OSX is not supported due to lack of developers with a Mac.</p>
<p>Currently, only the 31.25 version is supported. If you need DFHack
@ -404,7 +407,7 @@ for older versions, look for older releases.</p>
<p>It is possible to use the Windows DFHack under wine/OSX.</p>
</div>
<div class="section" id="installation-removal">
<h1><a class="toc-backref" href="#id8">Installation/Removal</a></h1>
<h1><a class="toc-backref" href="#id9">Installation/Removal</a></h1>
<p>Installing DFhack involves copying files into your DF folder.
Copy the files from a release archive so that:</p>
<blockquote>
@ -430,7 +433,7 @@ Copy the files from a release archive so that:</p>
<p>If it refuses to load, check the stderr.log file created in your DF folder.</p>
</div>
<div class="section" id="using-dfhack">
<h1><a class="toc-backref" href="#id9">Using DFHack</a></h1>
<h1><a class="toc-backref" href="#id10">Using DFHack</a></h1>
<p>DFHack basically extends what DF can do with something similar to a quake console. On Windows, this is a separate command line window. On linux, the terminal used to launch the dfhack script is taken over (so, make sure you start from a terminal).
Basic interaction with dfhack involves entering commands into the console. For some basic instroduction, use the 'help' command. To list all possible commands, use the 'ls' command.
Many commands have their own help or detailed description. You can use 'command help' or 'command ?' to show that.</p>
@ -440,20 +443,20 @@ Some commands can't be used from hotkeys - this includes interactive commands li
<p>Most of the commands come from plugins. Those reside in 'DF/plugins/'.</p>
</div>
<div class="section" id="something-doesn-t-work-help">
<h1><a class="toc-backref" href="#id10">Something doesn't work, help!</a></h1>
<h1><a class="toc-backref" href="#id11">Something doesn't work, help!</a></h1>
<p>First, don't panic :) Second, dfhack keeps a few log files in DF's folder - stderr.log and stdout.log. You can look at those and possibly find out what's happening.
If you found a bug, you can either report it in the bay12 DFHack thread, the issues tracker on github, contact me (<a class="reference external" href="mailto:peterix&#64;gmail.com">peterix&#64;gmail.com</a>) or visit the #dfhack IRC channel on freenode.</p>
</div>
<div class="section" id="commands">
<h1><a class="toc-backref" href="#id11">Commands</a></h1>
<h1><a class="toc-backref" href="#id12">Commands</a></h1>
<div class="section" id="autodump">
<h2><a class="toc-backref" href="#id12">autodump</a></h2>
<h2><a class="toc-backref" href="#id13">autodump</a></h2>
<p>Automated item dumping tool. All loose items on the floor marked
for dumping are insta-dumped to the position of the in-game cursor.</p>
<p>Cursor must be placed on a floor tile. Instadumped items may not
show up in the cursor description list until you save/reload.</p>
<div class="section" id="options">
<h3><a class="toc-backref" href="#id13">Options</a></h3>
<h3><a class="toc-backref" href="#id14">Options</a></h3>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
@ -465,16 +468,16 @@ show up in the cursor description list until you save/reload.</p>
</div>
</div>
<div class="section" id="cleanmap">
<h2><a class="toc-backref" href="#id14">cleanmap</a></h2>
<h2><a class="toc-backref" href="#id15">cleanmap</a></h2>
<p>Cleans all the splatter that get scattered all over the map.
By default, it leaves mud and snow alone.</p>
</div>
<div class="section" id="cleanowned">
<h2><a class="toc-backref" href="#id15">cleanowned</a></h2>
<h2><a class="toc-backref" href="#id16">cleanowned</a></h2>
<p>Confiscates items owned by dwarfs.
By default, owned food on the floor and rotten items are confistacted and dumped.</p>
<div class="section" id="id1">
<h3><a class="toc-backref" href="#id16">Options</a></h3>
<h3><a class="toc-backref" href="#id17">Options</a></h3>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
@ -494,10 +497,10 @@ By default, owned food on the floor and rotten items are confistacted and dumped
</div>
</div>
<div class="section" id="colonies">
<h2><a class="toc-backref" href="#id17">colonies</a></h2>
<h2><a class="toc-backref" href="#id18">colonies</a></h2>
<p>Allows listing all the vermin colonies on the map and optionally turning them into honey bee colonies.</p>
<div class="section" id="id2">
<h3><a class="toc-backref" href="#id18">Options</a></h3>
<h3><a class="toc-backref" href="#id19">Options</a></h3>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
@ -509,16 +512,16 @@ By default, owned food on the floor and rotten items are confistacted and dumped
</div>
</div>
<div class="section" id="deramp-by-zilpin">
<h2><a class="toc-backref" href="#id19">deramp (by zilpin)</a></h2>
<h2><a class="toc-backref" href="#id20">deramp (by zilpin)</a></h2>
<p>Removes all ramps designated for removal from the map. This is useful for replicating the old channel digging designation.
It also removes any and all 'down ramps' that can remain after a cave-in (you don't have to designate anything for that to happen).</p>
</div>
<div class="section" id="dfusion">
<h2><a class="toc-backref" href="#id20">dfusion</a></h2>
<h2><a class="toc-backref" href="#id21">dfusion</a></h2>
<p>This is the DFusion lua plugin system by warmist/darius, running as a DFHack plugin.</p>
<p>See the bay12 thread for details: <a class="reference external" href="http://www.bay12forums.com/smf/index.php?topic=69682.15">http://www.bay12forums.com/smf/index.php?topic=69682.15</a></p>
<div class="section" id="confirmed-working-dfusion-plugins">
<h3><a class="toc-backref" href="#id21">Confirmed working DFusion plugins:</a></h3>
<h3><a class="toc-backref" href="#id22">Confirmed working DFusion plugins:</a></h3>
<p>:simple_embark:allows changing the number of dwarves available on embark.</p>
<div class="note">
<p class="first admonition-title">Note</p>
@ -531,19 +534,19 @@ It also removes any and all 'down ramps' that can remain after a cave-in (you do
</div>
</div>
<div class="section" id="flows">
<h2><a class="toc-backref" href="#id22">flows</a></h2>
<h2><a class="toc-backref" href="#id23">flows</a></h2>
<p>A tool for checking how many tiles contain flowing liquids. If you suspect that your magma sea leaks into HFS, you can use this tool to be sure without revealing the map.</p>
</div>
<div class="section" id="grow">
<h2><a class="toc-backref" href="#id23">grow</a></h2>
<h2><a class="toc-backref" href="#id24">grow</a></h2>
<p>Makes all saplings present on the map grow into trees (almost) instantly.</p>
</div>
<div class="section" id="extirpate">
<h2><a class="toc-backref" href="#id24">extirpate</a></h2>
<h2><a class="toc-backref" href="#id25">extirpate</a></h2>
<p>A tool for getting rid of trees and shrubs. By default, it only kills a tree/shrub under the cursor.
The plants are turned into ashes instantly.</p>
<div class="section" id="id3">
<h3><a class="toc-backref" href="#id25">Options</a></h3>
<h3><a class="toc-backref" href="#id26">Options</a></h3>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
@ -559,11 +562,11 @@ The plants are turned into ashes instantly.</p>
</div>
</div>
<div class="section" id="immolate">
<h2><a class="toc-backref" href="#id26">immolate</a></h2>
<h2><a class="toc-backref" href="#id27">immolate</a></h2>
<p>Very similar to extirpate, but additionally sets the plants on fire. The fires can and <em>will</em> spread ;)</p>
</div>
<div class="section" id="liquids">
<h2><a class="toc-backref" href="#id27">liquids</a></h2>
<h2><a class="toc-backref" href="#id28">liquids</a></h2>
<p>Allows adding magma, water and obsidian to the game. It replaces the normal dfhack command line and can't be used from a hotkey.
For more information, refer to the command's internal help.</p>
<div class="note">
@ -573,7 +576,7 @@ temperatures (creating heat traps). You've been warned.</p>
</div>
</div>
<div class="section" id="mode">
<h2><a class="toc-backref" href="#id28">mode</a></h2>
<h2><a class="toc-backref" href="#id29">mode</a></h2>
<p>This command lets you see and change the game mode directly. Not all combinations are good for every situation and most of them will produce undesirable results.
There are a few good ones though.</p>
<div class="admonition-example admonition">
@ -585,22 +588,22 @@ You just lost a fortress and gained an adventurer.</p>
<p>I take no responsibility of anything that happens as a result of using this tool :P</p>
</div>
<div class="section" id="forcepause">
<h2><a class="toc-backref" href="#id29">forcepause</a></h2>
<h2><a class="toc-backref" href="#id30">forcepause</a></h2>
<p>Forces DF to pause. This is useful when your FPS drops below 1 and you lose control of the game.</p>
</div>
<div class="section" id="die">
<h2><a class="toc-backref" href="#id30">die</a></h2>
<h2><a class="toc-backref" href="#id31">die</a></h2>
<p>Instantly kills DF without saving.</p>
</div>
<div class="section" id="probe">
<h2><a class="toc-backref" href="#id31">probe</a></h2>
<h2><a class="toc-backref" href="#id32">probe</a></h2>
<p>Can be used to determine tile properties like temperature.</p>
</div>
<div class="section" id="prospector">
<h2><a class="toc-backref" href="#id32">prospector</a></h2>
<h2><a class="toc-backref" href="#id33">prospector</a></h2>
<p>Lists all available minerals on the map and how much of them there is. By default, only processes the already discovered part of the map.</p>
<div class="section" id="id4">
<h3><a class="toc-backref" href="#id33">Options</a></h3>
<h3><a class="toc-backref" href="#id34">Options</a></h3>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
@ -612,25 +615,25 @@ You just lost a fortress and gained an adventurer.</p>
</div>
</div>
<div class="section" id="reveal">
<h2><a class="toc-backref" href="#id34">reveal</a></h2>
<h2><a class="toc-backref" href="#id35">reveal</a></h2>
<p>This reveals the map. By default, HFS will remain hidden so that the demons don't spawn. You can use 'reveal hell' to reveal everything. With hell revealed, you won't be able to unpause until you hide the map again.</p>
</div>
<div class="section" id="unreveal">
<h2><a class="toc-backref" href="#id35">unreveal</a></h2>
<h2><a class="toc-backref" href="#id36">unreveal</a></h2>
<p>Reverts the effects of 'reveal'.</p>
</div>
<div class="section" id="revtoggle">
<h2><a class="toc-backref" href="#id36">revtoggle</a></h2>
<h2><a class="toc-backref" href="#id37">revtoggle</a></h2>
<p>Switches between 'reveal' and 'unreveal'.</p>
</div>
<div class="section" id="revflood">
<h2><a class="toc-backref" href="#id37">revflood</a></h2>
<h2><a class="toc-backref" href="#id38">revflood</a></h2>
<p>This command will hide the whole map and then reveal all the tiles that have a path to the in-game cursor.</p>
</div>
<div class="section" id="ssense-stonesense">
<h2><a class="toc-backref" href="#id38">ssense / stonesense</a></h2>
<p>This is an isometric visualizer that is runs in a second window.</p>
<p>This requires working graphics acceleration, at least a dual core CPU (otherwise it will slow down DF) and on Linux, the allegro 5 libraries installed (look for 'allegro5' in your package manager app).</p>
<h2><a class="toc-backref" href="#id39">ssense / stonesense</a></h2>
<p>An isometric visualizer that runs in a second window. This requires working graphics acceleration and at least a dual core CPU (otherwise it will slow down DF).</p>
<p>Unfortunately currently fails to run on Windows XP and most Linux distributions.</p>
<p>All the data resides in the 'stonesense' directory.</p>
<p>Older versions, support and extra graphics can be found in the bay12 forum thread:
<a class="reference external" href="http://www.bay12forums.com/smf/index.php?topic=43260.0">http://www.bay12forums.com/smf/index.php?topic=43260.0</a></p>
@ -638,24 +641,24 @@ You just lost a fortress and gained an adventurer.</p>
<a class="reference external" href="http://df.magmawiki.com/index.php/Utility:Stonesense/Content_repository">http://df.magmawiki.com/index.php/Utility:Stonesense/Content_repository</a></p>
</div>
<div class="section" id="tubefill">
<h2><a class="toc-backref" href="#id39">tubefill</a></h2>
<h2><a class="toc-backref" href="#id40">tubefill</a></h2>
<p>Fills all the adamantine veins again. Veins that were empty will be filled in too, but might still trigger a demon invasion (this is a known bug).</p>
</div>
<div class="section" id="vdig">
<h2><a class="toc-backref" href="#id40">vdig</a></h2>
<h2><a class="toc-backref" href="#id41">vdig</a></h2>
<p>Designates a whole vein for digging. Requires an active in-game cursor placed over a vein tile. With the 'x' option, it will traverse z-levels (putting stairs between the same-material tiles).</p>
</div>
<div class="section" id="vdigx">
<h2><a class="toc-backref" href="#id41">vdigx</a></h2>
<h2><a class="toc-backref" href="#id42">vdigx</a></h2>
<p>A permanent alias for 'vdig x'.</p>
</div>
<div class="section" id="expdig">
<h2><a class="toc-backref" href="#id42">expdig</a></h2>
<h2><a class="toc-backref" href="#id43">expdig</a></h2>
<p>This command can be used for exploratory mining.</p>
<p>See: <a class="reference external" href="http://df.magmawiki.com/index.php/DF2010:Exploratory_mining">http://df.magmawiki.com/index.php/DF2010:Exploratory_mining</a></p>
<p>There are two variables that can be set: pattern and filter.</p>
<div class="section" id="patterns">
<h3><a class="toc-backref" href="#id43">Patterns:</a></h3>
<h3><a class="toc-backref" href="#id44">Patterns:</a></h3>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
@ -672,7 +675,7 @@ You just lost a fortress and gained an adventurer.</p>
</table>
</div>
<div class="section" id="filters">
<h3><a class="toc-backref" href="#id44">Filters:</a></h3>
<h3><a class="toc-backref" href="#id45">Filters:</a></h3>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
@ -688,7 +691,7 @@ You just lost a fortress and gained an adventurer.</p>
<p>After you have a pattern set, you can use 'expdig' to apply it again.</p>
</div>
<div class="section" id="examples">
<h3><a class="toc-backref" href="#id45">Examples:</a></h3>
<h3><a class="toc-backref" href="#id46">Examples:</a></h3>
<ul class="simple">
<li>'expdig diag5 hidden' = designate the diagonal 5 patter over all hidden tiles.</li>
<li>'expdig' = apply last used pattern and filter.</li>
@ -697,9 +700,24 @@ You just lost a fortress and gained an adventurer.</p>
</div>
</div>
<div class="section" id="weather">
<h2><a class="toc-backref" href="#id46">weather</a></h2>
<p>Lets you change the current weather to 'clear sky', 'rainy' or 'snowing'.
Fill those ponds without mucking around with dfliquids :D Rain can also stop brush fires.</p>
<h2><a class="toc-backref" href="#id47">weather</a></h2>
<p>Prints the current weather map by default.</p>
<p>Also lets you change the current weather to 'clear sky', 'rainy' or 'snowing'.</p>
<div class="section" id="id5">
<h3><a class="toc-backref" href="#id48">Options:</a></h3>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">snow:</th><td class="field-body">make it snow everywhere.</td>
</tr>
<tr class="field"><th class="field-name">rain:</th><td class="field-body">make it rain.</td>
</tr>
<tr class="field"><th class="field-name">clear:</th><td class="field-body">clear the sky.</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>

@ -4,6 +4,9 @@ cmake_minimum_required(VERSION 2.8)
## build options
OPTION(BUILD_DEVEL "Install/package files required for development (For SDK)." OFF)
OPTION(BUILD_DOXYGEN "Create/install/package doxygen documentation for DFHack (For SDK)." OFF)
IF(UNIX)
OPTION(CONSOLE_NO_CATCH "Make the console not catch 'CTRL+C' events for easier debugging." OFF)
ENDIF()
include_directories (include)
include_directories (depends/md5)
@ -117,6 +120,12 @@ LIST(APPEND PROJECT_SRCS ${PROJECT_HDRS})
ADD_DEFINITIONS(-DBUILD_DFHACK_LIB)
IF(UNIX)
IF(CONSOLE_NO_CATCH)
ADD_DEFINITIONS(-DCONSOLE_NO_CATCH)
ENDIF()
ENDIF()
IF(UNIX)
add_definitions(-DLINUX_BUILD)
SET(CMAKE_CXX_FLAGS_DEBUG "-g -Wall")

@ -335,7 +335,11 @@ namespace DFHack
raw.c_cflag |= (CS8);
// local modes - choing off, canonical off, no extended functions,
// no signal chars (^Z,^C)
#ifdef CONSOLE_NO_CATCH
raw.c_lflag &= ~( ECHO | ICANON | IEXTEN );
#else
raw.c_lflag &= ~( ECHO | ICANON | IEXTEN | ISIG );
#endif
// control chars - set return condition: min number of bytes and timer.
// We want read to return every single byte, without timeout.
raw.c_cc[VMIN] = 1; raw.c_cc[VTIME] = 0;// 1 byte, no timer