mirror of
https://github.com/simh/simh.git
synced 2026-01-18 17:08:16 +00:00
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!
This commit is contained in:
parent
7251196f31
commit
74a0101771
@ -1073,9 +1073,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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user