summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2001-01-24 09:05:35 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2001-01-24 09:05:35 +0000
commit5c9a541b6640dcdeec389f6cd7391747dfd15c94 (patch)
treef64f2f9aa01f4ddb7da9775860dee1d8b47d2858 /lib
parent45e889896e4f3fe08d16af408c15f8ec2914ab2e (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libvgl/keyboard.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libvgl/keyboard.c b/lib/libvgl/keyboard.c
index 85850f5972fe..fe1286ac8873 100644
--- a/lib/libvgl/keyboard.c
+++ b/lib/libvgl/keyboard.c
@@ -51,14 +51,14 @@ VGLKeyboardInit(int mode)
term = VGLKeyboardTty;
cfmakeraw(&term);
term.c_iflag = IGNPAR | IGNBRK;
- term.c_oflag = 0;
+ term.c_oflag = OPOST | ONLCR;
term.c_cflag = CREAD | CS8;
term.c_lflag &= ~(ICANON | ECHO | ISIG);
term.c_cc[VTIME] = 0;
term.c_cc[VMIN] = 0;
cfsetispeed(&term, 9600);
cfsetospeed(&term, 9600);
- tcsetattr(0, TCSANOW, &term);
+ tcsetattr(0, TCSANOW | TCSAFLUSH, &term);
switch (mode) {
case VGL_RAWKEYS:
@@ -79,7 +79,7 @@ VGLKeyboardEnd()
{
if (VGLKeyboardMode != -1) {
ioctl(0, KDSKBMODE, VGLKeyboardMode);
- tcsetattr(0, TCSANOW, &VGLKeyboardTty);
+ tcsetattr(0, TCSANOW | TCSAFLUSH, &VGLKeyboardTty);
}
}