diff options
author | 1999-03-23 02:19:32 +0000 | |
---|---|---|
committer | 1999-03-23 02:19:32 +0000 | |
commit | 481bd01f76fe04dd8194f966fd8adba8f05f01cb (patch) | |
tree | a3a0469e138ba693e24c530f0142485c74cb12d2 | |
parent | pronoun agreement (diff) | |
download | wireguard-openbsd-481bd01f76fe04dd8194f966fd8adba8f05f01cb.tar.xz wireguard-openbsd-481bd01f76fe04dd8194f966fd8adba8f05f01cb.zip |
Use cbreak(), not crmode() since crmode is just #define'd to cbreak
anyway. Add a call to nl() after the cbreak(). This would fix PR #783
except that ncurses does not set ICRNL/ONLCR in nl() like I think it
should. PR #783 will be fixed once that issue is resolved so consider
this part one of two...
-rw-r--r-- | usr.bin/talk/init_disp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/talk/init_disp.c b/usr.bin/talk/init_disp.c index cf2d55b064c..aeb4d4ac5ca 100644 --- a/usr.bin/talk/init_disp.c +++ b/usr.bin/talk/init_disp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: init_disp.c,v 1.8 1999/03/03 20:43:30 millert Exp $ */ +/* $OpenBSD: init_disp.c,v 1.9 1999/03/23 02:19:32 millert Exp $ */ /* $NetBSD: init_disp.c,v 1.6 1994/12/09 02:14:17 jtc Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)init_disp.c 8.2 (Berkeley) 2/16/94"; #endif -static char rcsid[] = "$OpenBSD: init_disp.c,v 1.8 1999/03/03 20:43:30 millert Exp $"; +static char rcsid[] = "$OpenBSD: init_disp.c,v 1.9 1999/03/23 02:19:32 millert Exp $"; #endif /* not lint */ /* @@ -72,7 +72,8 @@ init_display() clear(); refresh(); noecho(); - crmode(); + cbreak(); + nl(); signal(SIGINT, sig_sent); signal(SIGPIPE, sig_sent); /* curses takes care of ^Z */ |