summaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-07-01 15:16:24 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-07-01 15:16:24 +0000
commit17e239a2676086324e27ef2c89bf1f1120380364 (patch)
tree43f057a158c89d735753f4510820f660c2ed1485 /boot
parentdfb70c3bcf182f5a0483425611481b78e02b7ad4 (diff)
Formerly boot.c.~30~
Diffstat (limited to 'boot')
-rw-r--r--boot/boot.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/boot/boot.c b/boot/boot.c
index 26b36fb4..a0b5db84 100644
--- a/boot/boot.c
+++ b/boot/boot.c
@@ -578,9 +578,19 @@ int localbits;
void
init_termstate ()
{
- term_modes[3] |= ICANON;
+ struct sgttyb sgb;
+ int bits;
ioctl (0, TIOCGETP, &term_sgb);
ioctl (0, TIOCLGET, &localbits);
+ /* Enter raw made. Rather than try and interpret these bits,
+ we just do what emacs does in .../emacs/src/sysdep.c for
+ an old style terminal driver. */
+ bits = localbits | LDECCTQ | LLITOUT | LPASS8 | LNOFLSH;
+ ioctl (0, TIOCLSET, &bits);
+ sgb = term_sgb;
+ sgb.flags &= ~ECHO;
+ sgb.flags |= RAW | ANYP;
+ ioctl (0, TIOCSETN, &sgb);
}
kern_return_t