Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/msgc teach the message prompting code to use control...
details: https://anonhg.NetBSD.org/src/rev/d02d6103449f
branches: trunk
changeset: 473777:d02d6103449f
user: cgd <cgd%NetBSD.org@localhost>
date: Sat Jun 19 00:13:19 1999 +0000
description:
teach the message prompting code to use control-U as line kill character.
(not really the right thing, but it already hard-codes backspace and
delete rather than using the terminal settings...)
diffstat:
usr.bin/msgc/msg_sys.def | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r f4bdb0a49105 -r d02d6103449f usr.bin/msgc/msg_sys.def
--- a/usr.bin/msgc/msg_sys.def Sat Jun 19 00:11:17 1999 +0000
+++ b/usr.bin/msgc/msg_sys.def Sat Jun 19 00:13:19 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: msg_sys.def,v 1.3 1999/06/19 00:00:48 cgd Exp $ */
+/* $NetBSD: msg_sys.def,v 1.4 1999/06/19 00:13:19 cgd Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -157,8 +157,17 @@
}
} else
msg_beep ();
- }
- else if (count < (max_chars - 1) && isprint(ch)) {
+ } else if (ch == 0x15) { /* ^U; line kill */
+ while (count > 0) {
+ count--;
+ if (do_echo) {
+ getyx(msg_win, y, x);
+ x--;
+ wmove(msg_win, y, x);
+ wdelch(msg_win);
+ }
+ }
+ } else if (count < (max_chars - 1) && isprint(ch)) {
if (do_echo)
waddch (msg_win, ch);
ibuf[count++] = ch;
Home |
Main Index |
Thread Index |
Old Index