diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-05-14 12:06:16 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-05-14 12:27:31 -0700 |
commit | af336c444f4fe9d8a1677a200f40748ce5f24a26 (patch) | |
tree | b06b1c2323a5033194724171af7681e760bd546b /termbox | |
parent | b98d3876b67a35f1d913ba374749bc97103b7790 (diff) | |
download | mu-af336c444f4fe9d8a1677a200f40748ce5f24a26.tar.gz |
1368 - alias carriage-return and newline
CRLF still shows as two newlines, though. Cross that bridge when we get to it. The new chessboard test is still hanging, though.
Diffstat (limited to 'termbox')
-rw-r--r-- | termbox/termbox.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/termbox/termbox.h b/termbox/termbox.h index b1b75ac8..0bd55be9 100644 --- a/termbox/termbox.h +++ b/termbox/termbox.h @@ -184,6 +184,9 @@ struct tb_event { * #define TB_KEY_CTRL_9 clash with '9' * #define TB_KEY_CTRL_0 clash with '0' */ +/* Some aliases */ +#define TB_KEY_NEWLINE TB_KEY_CTRL_J +#define TB_KEY_CARRIAGE_RETURN TB_KEY_CTRL_M /* Wait for an event up to 'timeout' milliseconds and fill the 'event' * structure with it, when the event is available. Returns the type of the |