diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-12-07 18:30:21 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-12-07 18:30:21 +0000 |
commit | c34b1217022619f8cfb2598022fffbfdfb0f0871 (patch) | |
tree | 15c51014c91d48e80565c4a80d56f75b4ff55e1a /crawl-ref/source/macro.cc | |
parent | 4e483ad38133053fb4d37c98fe817da231fb111e (diff) | |
download | crawl-ref-c34b1217022619f8cfb2598022fffbfdfb0f0871.tar.gz crawl-ref-c34b1217022619f8cfb2598022fffbfdfb0f0871.zip |
Use c_getch() instead of m_getch() in getch_mul(), as the translation
provided by c_getch() makes Ctrl-H act as expected on Unix-like
terminals where Ctrl-H returns KEY_BACKSPACE, instead of producing the
"Unknown command." message.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3020 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/macro.cc')
-rw-r--r-- | crawl-ref/source/macro.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/macro.cc b/crawl-ref/source/macro.cc index a87e86172d..4ed27f7569 100644 --- a/crawl-ref/source/macro.cc +++ b/crawl-ref/source/macro.cc @@ -640,7 +640,7 @@ static keyseq getch_mul( int (*rgetch)() = NULL ) } if (!rgetch) - rgetch = m_getch; + rgetch = c_getch; keys.push_back( a = rgetch() ); |