From 146ee734c718031bfb47bb1ec97375db11fe81c3 Mon Sep 17 00:00:00 2001 From: Sebastian Dransfeld Date: Thu, 4 Oct 2012 23:18:46 +0000 Subject: [PATCH] terminology: define important chars for all file SVN revision: 77482 --- src/bin/termptyesc.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c index 5e874190..ff727a07 100644 --- a/src/bin/termptyesc.c +++ b/src/bin/termptyesc.c @@ -18,6 +18,9 @@ #define INF(...) EINA_LOG_DOM_INFO(_termpty_log_dom, __VA_ARGS__) #define DBG(...) EINA_LOG_DOM_DBG(_termpty_log_dom, __VA_ARGS__) +#define ST 0x9c // String Terminator +#define BEL 0x07 // Bell + static int _csi_arg_get(Eina_Unicode **ptr) { @@ -868,16 +871,12 @@ _handle_esc_xterm(Termpty *ty, const Eina_Unicode *c, Eina_Unicode *ce) cc = c; b = buf; -#define ST 0x9c // String Terminator -#define BEL 0x07 // Bell while ((cc < ce) && (*cc != ST) && (*cc != BEL)) { *b = *cc; b++; cc++; } -#undef ST -#undef BEL *b = 0; if ((*cc < ' ') || (*cc >= 0x7f)) cc++; else return -2;