aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
Diffstat (limited to 'editors')
-rw-r--r--editors/vi.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/editors/vi.c b/editors/vi.c
index b8cacb43f..d9124fd76 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -60,18 +60,18 @@ enum {
60 60
61/* vt102 typical ESC sequence */ 61/* vt102 typical ESC sequence */
62/* terminal standout start/normal ESC sequence */ 62/* terminal standout start/normal ESC sequence */
63static const char SOs[] ALIGN1 = "\033[7m"; 63#define SOs "\033[7m"
64static const char SOn[] ALIGN1 = "\033[0m"; 64#define SOn "\033[0m"
65/* terminal bell sequence */ 65/* terminal bell sequence */
66static const char bell[] ALIGN1 = "\007"; 66#define bell "\007"
67/* Clear-end-of-line and Clear-end-of-screen ESC sequence */ 67/* Clear-end-of-line and Clear-end-of-screen ESC sequence */
68static const char Ceol[] ALIGN1 = "\033[K"; 68#define Ceol "\033[K"
69static const char Ceos[] ALIGN1 = "\033[J"; 69#define Ceos "\033[J"
70/* Cursor motion arbitrary destination ESC sequence */ 70/* Cursor motion arbitrary destination ESC sequence */
71static const char CMrc[] ALIGN1 = "\033[%d;%dH"; 71#define CMrc "\033[%u;%uH"
72/* Cursor motion up and down ESC sequence */ 72/* Cursor motion up and down ESC sequence */
73static const char CMup[] ALIGN1 = "\033[A"; 73#define CMup "\033[A"
74static const char CMdown[] ALIGN1 = "\n"; 74#define CMdown "\n"
75 75
76#if ENABLE_FEATURE_VI_DOT_CMD || ENABLE_FEATURE_VI_YANKMARK 76#if ENABLE_FEATURE_VI_DOT_CMD || ENABLE_FEATURE_VI_YANKMARK
77// cmds modifying text[] 77// cmds modifying text[]