aboutsummaryrefslogtreecommitdiff
path: root/editors/vi.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-08-12 20:58:27 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-08-12 20:58:27 +0000
commit6ca409e0e4c198fe3081346eebbae3f068fe605a (patch)
tree060cb05d99220a1eda399194d1209c269f0e8cd8 /editors/vi.c
parent4185548984357df91311f30c8e43d95f33922576 (diff)
downloadbusybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.tar.gz
busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.tar.bz2
busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.zip
trylink: produce even more info about final link stage
trylink: explain how to modify link and drastically decrease amount of padding (unfortunately, needs hand editing ATM). *: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts size saving: 0.5k
Diffstat (limited to 'editors/vi.c')
-rw-r--r--editors/vi.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/editors/vi.c b/editors/vi.c
index c4f3a8393..74566499c 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -62,18 +62,18 @@ enum {
62 62
63/* vt102 typical ESC sequence */ 63/* vt102 typical ESC sequence */
64/* terminal standout start/normal ESC sequence */ 64/* terminal standout start/normal ESC sequence */
65static const char SOs[] = "\033[7m"; 65static const char SOs[] ALIGN1 = "\033[7m";
66static const char SOn[] = "\033[0m"; 66static const char SOn[] ALIGN1 = "\033[0m";
67/* terminal bell sequence */ 67/* terminal bell sequence */
68static const char bell[] = "\007"; 68static const char bell[] ALIGN1 = "\007";
69/* Clear-end-of-line and Clear-end-of-screen ESC sequence */ 69/* Clear-end-of-line and Clear-end-of-screen ESC sequence */
70static const char Ceol[] = "\033[0K"; 70static const char Ceol[] ALIGN1 = "\033[0K";
71static const char Ceos [] = "\033[0J"; 71static const char Ceos[] ALIGN1 = "\033[0J";
72/* Cursor motion arbitrary destination ESC sequence */ 72/* Cursor motion arbitrary destination ESC sequence */
73static const char CMrc[] = "\033[%d;%dH"; 73static const char CMrc[] ALIGN1 = "\033[%d;%dH";
74/* Cursor motion up and down ESC sequence */ 74/* Cursor motion up and down ESC sequence */
75static const char CMup[] = "\033[A"; 75static const char CMup[] ALIGN1 = "\033[A";
76static const char CMdown[] = "\n"; 76static const char CMdown[] ALIGN1 = "\n";
77 77
78 78
79enum { 79enum {
@@ -2663,7 +2663,7 @@ static void ni(const char * s) // display messages
2663static int format_edit_status(void) // show file status on status line 2663static int format_edit_status(void) // show file status on status line
2664{ 2664{
2665 static int tot; 2665 static int tot;
2666 static const char cmd_mode_indicator[] = "-IR-"; 2666 static const char cmd_mode_indicator[] ALIGN1 = "-IR-";
2667 int cur, percent, ret, trunc_at; 2667 int cur, percent, ret, trunc_at;
2668 2668
2669 // file_modified is now a counter rather than a flag. this 2669 // file_modified is now a counter rather than a flag. this