aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
Diffstat (limited to 'editors')
-rw-r--r--editors/ed.c6
-rw-r--r--editors/vi.c8
2 files changed, 7 insertions, 7 deletions
diff --git a/editors/ed.c b/editors/ed.c
index cd3836aed..31185d9b6 100644
--- a/editors/ed.c
+++ b/editors/ed.c
@@ -853,14 +853,14 @@ static int printLines(int num1, int num2, int expandFlag)
853 ch &= 0x7f; 853 ch &= 0x7f;
854 } 854 }
855 if (ch < ' ') { 855 if (ch < ' ') {
856 fputc('^', stdout); 856 bb_putchar('^');
857 ch += '@'; 857 ch += '@';
858 } 858 }
859 if (ch == 0x7f) { 859 if (ch == 0x7f) {
860 fputc('^', stdout); 860 bb_putchar('^');
861 ch = '?'; 861 ch = '?';
862 } 862 }
863 fputc(ch, stdout); 863 bb_putchar(ch);
864 } 864 }
865 865
866 fputs("$\n", stdout); 866 fputs("$\n", stdout);
diff --git a/editors/vi.c b/editors/vi.c
index 1fa7c3a09..eafe767f3 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -868,13 +868,13 @@ static void colon(char * buf)
868 if (c == '\n') { 868 if (c == '\n') {
869 write1("$\r"); 869 write1("$\r");
870 } else if (c < ' ' || c == 127) { 870 } else if (c < ' ' || c == 127) {
871 putchar('^'); 871 bb_putchar('^');
872 if (c == 127) 872 if (c == 127)
873 c = '?'; 873 c = '?';
874 else 874 else
875 c += '@'; 875 c += '@';
876 } 876 }
877 putchar(c); 877 bb_putchar(c);
878 if (c_is_no_print) 878 if (c_is_no_print)
879 standout_end(); 879 standout_end();
880 } 880 }
@@ -2337,7 +2337,7 @@ static char *get_input_line(const char * prompt) // get input line- use "status
2337 } else { 2337 } else {
2338 buf[i] = c; // save char in buffer 2338 buf[i] = c; // save char in buffer
2339 buf[i + 1] = '\0'; // make sure buffer is null terminated 2339 buf[i + 1] = '\0'; // make sure buffer is null terminated
2340 putchar(c); // echo the char back to user 2340 bb_putchar(c); // echo the char back to user
2341 i++; 2341 i++;
2342 } 2342 }
2343 } 2343 }
@@ -2860,7 +2860,7 @@ static void refresh(int full_screen)
2860 char *out = sp + cs; 2860 char *out = sp + cs;
2861 2861
2862 while (nic-- > 0) { 2862 while (nic-- > 0) {
2863 putchar(*out); 2863 bb_putchar(*out);
2864 out++; 2864 out++;
2865 } 2865 }
2866 } 2866 }