From 813d9b95d2f59d9a2702e2287f8f6965ba1bbf53 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Tue, 22 Nov 2016 16:30:55 +0100 Subject: avoid the non-standard \e escape sequence * shouldn't really be an issue but since we already have CTL_KEY_ESC_STR as a character literal, we may as well use it. --- src/sciteco.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/sciteco.h') diff --git a/src/sciteco.h b/src/sciteco.h index b7c62f2..be53b1c 100644 --- a/src/sciteco.h +++ b/src/sciteco.h @@ -68,10 +68,13 @@ extern sig_atomic_t sigint_occurred; #define CTL_KEY(C) ((C) & ~0x40) /** * Control character of the escape key. - * Equivalent to CTL_KEY('[') + * Equivalent to CTL_KEY('[') or '\e'. */ #define CTL_KEY_ESC 27 -/** String containing the escape character */ +/** + * String containing the escape character. + * There is "\e", but it's not really standard C/C++. + */ #define CTL_KEY_ESC_STR "\x1B" #define SUCCESS ((tecoBool)-1) -- cgit v1.2.3