-/* Copyright (c) 1980 Regents of the University of California */
-static char *sccsid = "@(#)ex_put.c 6.3 %G%";
+/* Copyright (c) 1981 Regents of the University of California */
+static char *sccsid = "@(#)ex_put.c 7.1 %G%";
#include "ex.h"
#include "ex_tty.h"
#include "ex_vis.h"
outcol++;
destcol++;
if (XN && outcol % COLUMNS == 0)
- putch('\n');
+ putch('\r'), putch('\n');
}
c = *lp++;
if (c <= ' ')
if (!inopen || vtube[outline]==NULL ||
(i=vtube[outline][outcol]) < ' ')
i = ' ';
+ if(i & QUOTE) /* mjm: no sign extension on 3B */
+ i = ' ';
if (insmode && ND)
tputs(ND, 0, plodput);
else
int c;
{
+#ifdef OLD3BTTY /* mjm */
+ if(c == '\n') /* mjm: Fake "\n\r" for '\n' til fix in 3B firmware */
+ putch('\r'); /* mjm: vi does "stty -icanon" => -onlcr !! */
+#endif
*obp++ = c & 0177;
if (obp >= &obuf[sizeof obuf])
flusho();
putchar(Outchar != termchar ? ' ' : '\n');
}
-
-#ifdef SIGTSTP
-/*
- * We have just gotten a susp. Suspend and prepare to resume.
- */
-onsusp()
-{
- ttymode f;
-
- f = setty(normf);
- vnfl();
- putpad(TE);
- flush();
-
- signal(SIGTSTP, SIG_DFL);
- kill(0, SIGTSTP);
-
- /* the pc stops here */
-
- signal(SIGTSTP, onsusp);
- vcontin(0);
- setty(f);
- if (!inopen)
- error(0);
- else {
- if (vcnt < 0) {
- vcnt = -vcnt;
- if (state == VISUAL)
- vclear();
- else if (state == CRTOPEN)
- vcnt = 0;
- }
- vdirty(0, LINES);
- vrepaint(cursor);
- }
-}