diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2018-06-18 17:03:59 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2018-06-18 17:03:59 +0000 |
commit | 5a7fce5cfbf462cd5ab0d73e2eeab540f9595595 (patch) | |
tree | 4bdf3ce8795284d778c36c62a1b8e896cd369a08 /bin/ksh/edit.c | |
parent | d801d9541d10c6568476226b0e5a9f593bb1a332 (diff) |
Add clear-screen emacs editing command, currently not bound to a
key by default. The shell will query the terminfo database to
find the escape sequence to clear the screen. OK deraadt@
Diffstat (limited to 'bin/ksh/edit.c')
-rw-r--r-- | bin/ksh/edit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ksh/edit.c b/bin/ksh/edit.c index 42514b9ec76..bbb1b3aeb8f 100644 --- a/bin/ksh/edit.c +++ b/bin/ksh/edit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: edit.c,v 1.65 2018/04/09 17:53:36 tobias Exp $ */ +/* $OpenBSD: edit.c,v 1.66 2018/06/18 17:03:58 millert Exp $ */ /* * Command line editing - common code @@ -138,10 +138,10 @@ x_flush(void) shf_flush(shl_out); } -void +int x_putc(int c) { - shf_putc(c, shl_out); + return shf_putc(c, shl_out); } void |