summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-03-23 02:19:33 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-03-23 02:19:33 +0000
commit4da2dab5aa27317602569bf3782520820ff4919a (patch)
treecbcb172894ba930e74d059ea5d424210d61e6bec
parentbb8c33bc8a83934a9d01bd1cf9350da3df8652ac (diff)
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.c7
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 */