diff options
author | Pekka Lampila <pekka.lampila@iki.fi> | 2013-03-08 17:15:38 +0200 |
---|---|---|
committer | Florian Diebold <flodiebold@gmail.com> | 2013-03-15 17:47:22 +0100 |
commit | bb6982915872a9e5bfbe4556604383259590a2b9 (patch) | |
tree | 8e461e870863f6bdfbeb5321a3555f3291d41c78 /crawl-ref/source/libunix.cc | |
parent | 6d9b99a5e8c3be6f2c2dd357b0e0bdb6b575df0b (diff) | |
download | crawl-ref-bb6982915872a9e5bfbe4556604383259590a2b9.tar.gz crawl-ref-bb6982915872a9e5bfbe4556604383259590a2b9.zip |
Show the text prompt cursor in WebTiles
Diffstat (limited to 'crawl-ref/source/libunix.cc')
-rw-r--r-- | crawl-ref/source/libunix.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/libunix.cc b/crawl-ref/source/libunix.cc index 0c75967f82..27a93fae4d 100644 --- a/crawl-ref/source/libunix.cc +++ b/crawl-ref/source/libunix.cc @@ -570,6 +570,13 @@ void clrscr() void set_cursor_enabled(bool enabled) { +#ifdef USE_TILE_WEB + if (cursor_is_enabled != enabled) + { + tiles.send_message("{\"msg\":\"text_cursor\",\"enabled\":%s}", + enabled ? "true" : "false"); + } +#endif curs_set(cursor_is_enabled = enabled); } |