circo

claudio's IRC oasis
git clone git://git.bitsmanent.org/circo
Log | Files | Refs | README | LICENSE

commit 335ddf6cf0d92ee68cd219ad83d3eae70422d919
parent e231fc41100211871faa6ec5356a21e1cd2adf50
Author: Claudio Alessi <smoppy@gmail.com>
Date:   Sat,  8 Jul 2017 11:14:20 +0200

Ensure CTRL() do exists.

Diffstat:
Mcirco.c | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/circo.c b/circo.c @@ -30,6 +30,14 @@ char *argv0; #define CURSON "\33[?25h" #define CURSOFF "\33[?25l" +#if defined CTRL && defined _AIX + #undef CTRL +#endif +#ifndef CTRL + #define CTRL(k) ((k) & 0x1F) +#endif +#define CTRL_ALT(k) ((k) + (129 - 'a')) + /* enums */ enum { KeyUp = -50, KeyDown, KeyRight, KeyLeft, KeyHome, KeyEnd, KeyDel, KeyPgUp, KeyPgDw };