Date: 14 Jul 2001 22:28:53 -0000 From: kolya@orbit.zepa.net To: FreeBSD-gnats-submit@freebsd.org Subject: kern/28976: ddb doesn't understand ctrl-u Message-ID: <20010714222853.42910.qmail@orbit.zepa.net>
next in thread | raw e-mail | index | archive | help
>Number: 28976 >Category: kern >Synopsis: ddb doesn't understand ctrl-u >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Jul 14 15:30:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Nickolai Zeldovich >Release: FreeBSD 4.3-STABLE i386 >Organization: >Environment: FreeBSD 4.3 on i386 with DDB in kernel >Description: DDB doesn't understand ^U >How-To-Repeat: Escape into DDB, type in text, press ^U. Doesn't erase. >Fix: --- sys/ddb/db_input.c 2000/01/11 14:53:53 1.28 +++ sys/ddb/db_input.c 2001/07/14 22:25:11 @@ -199,6 +199,11 @@ if (db_lc < db_le) db_delete(db_le - db_lc, DEL_FWD); break; + case CTRL('u'): + /* delete backwards to the beginning of line */ + if (db_lc > db_lbuf_start) + db_delete(db_lc - db_lbuf_start, DEL_BWD); + break; case CTRL('t'): /* twiddle last 2 characters */ if (db_lc >= db_lbuf_start + 2) { >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010714222853.42910.qmail>