diff options
author | 1996-06-10 21:41:25 +0000 | |
---|---|---|
committer | 1996-06-10 21:41:25 +0000 | |
commit | 6ba0056e533c0a64785a6966f7cddb7a0409c86c (patch) | |
tree | c47c21dc7d7c011de1b7b24c459de3c15d96996d | |
parent | hack: print hostname connection failed with (diff) | |
download | wireguard-openbsd-6ba0056e533c0a64785a6966f7cddb7a0409c86c.tar.xz wireguard-openbsd-6ba0056e533c0a64785a6966f7cddb7a0409c86c.zip |
Use beep() with ncurses
Use hline() with ncurses
-rw-r--r-- | usr.bin/talk/init_disp.c | 4 | ||||
-rw-r--r-- | usr.bin/talk/io.c | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/usr.bin/talk/init_disp.c b/usr.bin/talk/init_disp.c index d6d2a6e4762..bd2f12173da 100644 --- a/usr.bin/talk/init_disp.c +++ b/usr.bin/talk/init_disp.c @@ -89,7 +89,11 @@ init_display() wclear(his_win.x_win); line_win = newwin(1, COLS, my_win.x_nlines, 0); +#ifdef NCURSES_VERSION + whline(line_win, '-', COLS); +#else box(line_win, '-', '-'); +#endif wrefresh(line_win); /* let them know we are working on it */ current_state = "No connection yet"; diff --git a/usr.bin/talk/io.c b/usr.bin/talk/io.c index da7c100b543..6e6f1b62f5e 100644 --- a/usr.bin/talk/io.c +++ b/usr.bin/talk/io.c @@ -67,7 +67,14 @@ talk() char buf[BUFSIZ]; struct timeval wait; +#ifdef NCURSES_VERSION + message("Connection established"); + beep(); + beep(); + beep(); +#else message("Connection established\007\007\007"); +#endif current_line = 0; sockt_mask = (1<<sockt); |