summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dbg-util.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2010-05-14 22:58:44 +0200
committerRobert Vollmert <rvollmert@gmx.net>2010-05-14 23:00:21 +0200
commit156fc6ddf53bc9281a45bec8e85e8b1b84651955 (patch)
tree9b625885f7ae5ea5b5528cd70ae74343dc7bdfbd /crawl-ref/source/dbg-util.cc
parenta0caa330badb4f7ebe27a701b13033d99225d04c (diff)
downloadcrawl-ref-156fc6ddf53bc9281a45bec8e85e8b1b84651955.tar.gz
crawl-ref-156fc6ddf53bc9281a45bec8e85e8b1b84651955.zip
Use msgwin_get_line for some debug prompts.
Diffstat (limited to 'crawl-ref/source/dbg-util.cc')
-rw-r--r--crawl-ref/source/dbg-util.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/crawl-ref/source/dbg-util.cc b/crawl-ref/source/dbg-util.cc
index a368aa719e..ba10f97793 100644
--- a/crawl-ref/source/dbg-util.cc
+++ b/crawl-ref/source/dbg-util.cc
@@ -14,6 +14,7 @@
#include "dungeon.h"
#include "env.h"
#include "libutil.h"
+#include "message.h"
#include "mon-stuff.h"
#include "mon-util.h"
#include "religion.h"
@@ -33,8 +34,7 @@ int debug_prompt_for_int( const char *prompt, bool nonneg )
{
char specs[80];
- mpr(prompt, MSGCH_PROMPT);
- get_input_line( specs, sizeof( specs ) );
+ msgwin_get_line(prompt, specs, sizeof(specs));
if (specs[0] == '\0')
return (nonneg ? -1 : 0);
@@ -365,12 +365,11 @@ void debug_dump_mon(const monsters* mon, bool recurse)
// debug_prompt_for_skill
//
//---------------------------------------------------------------
-int debug_prompt_for_skill( const char *prompt )
+int debug_prompt_for_skill(const char *prompt)
{
char specs[80];
- mpr(prompt, MSGCH_PROMPT);
- get_input_line( specs, sizeof( specs ) );
+ msgwin_get_line_autohist(prompt, specs, sizeof(specs));
if (specs[0] == '\0')
return (-1);