From 95d2365c5262609a9337fc2b4df8e0f8705f6822 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Tue, 15 Mar 2016 11:33:29 -0700 Subject: [PATCH] PDP18B: Update console CR/LF echo behavior from Bob Supnik The terminal service (in the ISR) forces a CR to be output IMMEDIATELY (before anything in the output queue) when 0212 is seen on input, so it needs to echo as a LF. I hadn't seen any (other) echo support, so I had assumed the interface was half-duplex, which of course means passwords would appear on the paper! --- PDP18B/pdp18b_stddev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PDP18B/pdp18b_stddev.c b/PDP18B/pdp18b_stddev.c index 49e7b741..8e446d73 100644 --- a/PDP18B/pdp18b_stddev.c +++ b/PDP18B/pdp18b_stddev.c @@ -1062,9 +1062,9 @@ if (c & SCPE_BREAK) /* break? */ else c = sim_tt_inpcvt (c, TT_GET_MODE (uptr->flags) | TTUF_KSR); if (uptr->flags & TTUF_UNIX) { /* unix v0? */ if (c == 0215) /* cr -> lf */ - c = 0212; + c = out = 0212; else if (c == 0212) /* lf -> cr */ - c = 0215; + c = out = 0215; else if (c == 0233) /* esc -> altmode */ c = 0375; }