summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/cio.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-04-01 01:00:14 +0200
committerAdam Borowski <kilobyte@angband.pl>2011-04-01 01:00:14 +0200
commit452ff385766f7f82e4ff92f319dd3a284795fd2e (patch)
tree35f3bfd02c4d16d05cda2126aaf82dd945690686 /crawl-ref/source/cio.h
parent778a975c1cf474d6c585d2177956daff30cffc24 (diff)
parent5485922b1f7b6c4e369d0b885ccfbff0e6e0d850 (diff)
downloadcrawl-ref-452ff385766f7f82e4ff92f319dd3a284795fd2e.tar.gz
crawl-ref-452ff385766f7f82e4ff92f319dd3a284795fd2e.zip
Merge branch 'unicode'.
There are some issues left, like incorrect wrapping in some cases, but we can fix them later.
Diffstat (limited to 'crawl-ref/source/cio.h')
-rw-r--r--crawl-ref/source/cio.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/cio.h b/crawl-ref/source/cio.h
index 6e647ad40f..6a188d3296 100644
--- a/crawl-ref/source/cio.h
+++ b/crawl-ref/source/cio.h
@@ -140,8 +140,7 @@ enum KEYS
CK_BKSP = 8,
CK_ESCAPE = ESCAPE,
- // 128 is off-limits because it's the code that's used when running
- CK_DELETE = 129,
+ CK_DELETE = -255,
// This sequence of enums should not be rearranged.
CK_UP,
@@ -190,7 +189,7 @@ enum KEYS
CK_CTRL_TAB,
// Mouse codes.
- CK_MOUSE_MOVE = 10001,
+ CK_MOUSE_MOVE = -10009,
CK_MOUSE_CMD,
CK_MOUSE_B1,
CK_MOUSE_B2,
@@ -241,8 +240,9 @@ protected:
void backspace();
void killword();
void kill_to_begin();
+ void calc_pos();
- bool is_wordchar(int c);
+ bool is_wordchar(ucs_t c);
protected:
char *buffer;