aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os_unix.c
diff options
context:
space:
mode:
authorPavel Platto <hinidu@gmail.com>2014-06-05 17:11:10 +0300
committerPavel Platto <hinidu@gmail.com>2014-08-02 09:16:59 +0300
commit77cb6551a69108dc734608a18d2305fe57ebd2f2 (patch)
tree2ddb93fa9ea0aa51bbe0662074c24336ae940485 /src/nvim/os_unix.c
parent8991609393e8f6ae1248cc312aece546f718e0ec (diff)
downloadrneovim-77cb6551a69108dc734608a18d2305fe57ebd2f2.tar.gz
rneovim-77cb6551a69108dc734608a18d2305fe57ebd2f2.tar.bz2
rneovim-77cb6551a69108dc734608a18d2305fe57ebd2f2.zip
Remove EBCDIC: Remove IF_EB macros
Diffstat (limited to 'src/nvim/os_unix.c')
-rw-r--r--src/nvim/os_unix.c34
1 files changed, 16 insertions, 18 deletions
diff --git a/src/nvim/os_unix.c b/src/nvim/os_unix.c
index 9e7940bc2a..fd0489d03f 100644
--- a/src/nvim/os_unix.c
+++ b/src/nvim/os_unix.c
@@ -753,16 +753,16 @@ void mch_setmouse(int on)
if (ttym_flags == TTYM_URXVT) {
out_str_nf((char_u *)
(on
- ? IF_EB("\033[?1015h", ESC_STR "[?1015h")
- : IF_EB("\033[?1015l", ESC_STR "[?1015l")));
+ ? "\033[?1015h"
+ : "\033[?1015l"));
ison = on;
}
if (ttym_flags == TTYM_SGR) {
out_str_nf((char_u *)
(on
- ? IF_EB("\033[?1006h", ESC_STR "[?1006h")
- : IF_EB("\033[?1006l", ESC_STR "[?1006l")));
+ ? "\033[?1006h"
+ : "\033[?1006l"));
ison = on;
}
@@ -770,13 +770,13 @@ void mch_setmouse(int on)
if (on) /* enable mouse events, use mouse tracking if available */
out_str_nf((char_u *)
(xterm_mouse_vers > 1
- ? IF_EB("\033[?1002h", ESC_STR "[?1002h")
- : IF_EB("\033[?1000h", ESC_STR "[?1000h")));
+ ? "\033[?1002h"
+ : "\033[?1000h"));
else /* disable mouse events, could probably always send the same */
out_str_nf((char_u *)
(xterm_mouse_vers > 1
- ? IF_EB("\033[?1002l", ESC_STR "[?1002l")
- : IF_EB("\033[?1000l", ESC_STR "[?1000l")));
+ ? "\033[?1002l"
+ : "\033[?1000l"));
ison = on;
} else if (ttym_flags == TTYM_DEC) {
if (on) /* enable mouse events */
@@ -797,8 +797,8 @@ void check_mouse_termcode(void)
&& use_xterm_mouse() != 3
) {
set_mouse_termcode(KS_MOUSE, (char_u *)(term_is_8bit(T_NAME)
- ? IF_EB("\233M", CSI_STR "M")
- : IF_EB("\033[M", ESC_STR "[M")));
+ ? "\233M"
+ : "\033[M"));
if (*p_mouse != NUL) {
/* force mouse off and maybe on to send possibly new mouse
* activation sequence to the xterm, with(out) drag tracing. */
@@ -814,7 +814,7 @@ void check_mouse_termcode(void)
if (!use_xterm_mouse()
)
set_mouse_termcode(KS_NETTERM_MOUSE,
- (char_u *)IF_EB("\033}", ESC_STR "}"));
+ (char_u *)"\033}");
else
del_mouse_termcode(KS_NETTERM_MOUSE);
@@ -822,17 +822,15 @@ void check_mouse_termcode(void)
if (!use_xterm_mouse()
)
set_mouse_termcode(KS_DEC_MOUSE, (char_u *)(term_is_8bit(T_NAME)
- ? IF_EB("\233",
- CSI_STR) : IF_EB("\033[",
- ESC_STR "[")));
+ ? "\233" : "\033["));
else
del_mouse_termcode(KS_DEC_MOUSE);
/* same as the dec mouse */
if (use_xterm_mouse() == 3
) {
set_mouse_termcode(KS_URXVT_MOUSE, (char_u *)(term_is_8bit(T_NAME)
- ? IF_EB("\233", CSI_STR)
- : IF_EB("\033[", ESC_STR "[")));
+ ? "\233"
+ : "\033["));
if (*p_mouse != NUL) {
mch_setmouse(FALSE);
@@ -844,8 +842,8 @@ void check_mouse_termcode(void)
if (use_xterm_mouse() == 4
) {
set_mouse_termcode(KS_SGR_MOUSE, (char_u *)(term_is_8bit(T_NAME)
- ? IF_EB("\233<", CSI_STR "<")
- : IF_EB("\033[<", ESC_STR "[<")));
+ ? "\233<"
+ : "\033[<"));
if (*p_mouse != NUL) {
mch_setmouse(FALSE);