diff --git a/keyboard.c b/keyboard.c index 45247d9..471d18f 100644 --- a/keyboard.c +++ b/keyboard.c @@ -107,6 +107,7 @@ v3270_draw_shift_status(terminal); } +#ifdef KEY_FLAG_ALT if(keyval_is_alt()) { if(status) @@ -115,6 +116,7 @@ terminal->keyflags &= ~KEY_FLAG_ALT; v3270_draw_alt_status(terminal); } +#endif // KEY_FLAG_ALT } diff --git a/oia.c b/oia.c index ff350ec..b9eaa72 100644 --- a/oia.c +++ b/oia.c @@ -887,7 +887,9 @@ static void update_text_field(v3270 *terminal, gboolean flag, V3270_OIA_FIELD id void v3270_draw_alt_status(v3270 *terminal) { +#ifdef KEY_FLAG_ALT update_text_field(terminal,terminal->keyflags & KEY_FLAG_ALT,V3270_OIA_ALT,'A'); +#endif // KEY_FLAG_ALT } void v3270_draw_ins_status(v3270 *terminal) diff --git a/private.h b/private.h index 95fc3a6..966d13f 100644 --- a/private.h +++ b/private.h @@ -62,7 +62,10 @@ G_BEGIN_DECLS #define OIA_TOP_MARGIN 2 #define KEY_FLAG_SHIFT 0x0001 - #define KEY_FLAG_ALT 0x0002 + + #ifndef WIN32 + #define KEY_FLAG_ALT 0x0002 + #endif // !WIN32 enum { -- libgit2 0.21.2