diff options
author | 2012-07-11 16:45:12 +0000 | |
---|---|---|
committer | 2012-07-11 16:45:12 +0000 | |
commit | 55e67042eb90db4d776d4bb31e3dd7c5c6f5d38d (patch) | |
tree | 391ee1e7803e32ad80e0885a7c5efa58a211b062 /usr.bin/cu/command.c | |
parent | When copying a file sparsely, truncate the resulting file based on the (diff) | |
download | wireguard-openbsd-55e67042eb90db4d776d4bb31e3dd7c5c6f5d38d.tar.xz wireguard-openbsd-55e67042eb90db4d776d4bb31e3dd7c5c6f5d38d.zip |
Make ~~ send a ~, pointed out by naddy.
Diffstat (limited to 'usr.bin/cu/command.c')
-rw-r--r-- | usr.bin/cu/command.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/cu/command.c b/usr.bin/cu/command.c index 7a8980584ec..17d86655eb6 100644 --- a/usr.bin/cu/command.c +++ b/usr.bin/cu/command.c @@ -1,4 +1,4 @@ -/* $OpenBSD: command.c,v 1.10 2012/07/10 12:47:23 nicm Exp $ */ +/* $OpenBSD: command.c,v 1.11 2012/07/11 16:45:12 nicm Exp $ */ /* * Copyright (c) 2012 Nicholas Marriott <nicm@openbsd.org> @@ -249,6 +249,9 @@ do_command(char c) sleep(1); ioctl(line_fd, TIOCCBRK, NULL); break; + case '~': + bufferevent_write(line_ev, "~", 1); + break; case '?': printf("\r\n" "~# send break\r\n" |