Bug 28976

Summary: ddb doesn't understand ctrl-u
Product: Base System Reporter: kolya <kolya>
Component: kernAssignee: Yar Tikhiy <yar>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.3-STABLE   
Hardware: Any   
OS: Any   

Description kolya 2001-07-14 23:30:01 UTC
	DDB doesn't understand ^U

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) {
How-To-Repeat: 
	Escape into DDB, type in text, press ^U.  Doesn't erase.
Comment 1 Yar Tikhiy freebsd_committer freebsd_triage 2002-02-11 14:15:11 UTC
State Changed
From-To: open->analyzed

Committed to -current, will be in -stable in a week. Thanks! 


Comment 2 Yar Tikhiy freebsd_committer freebsd_triage 2002-02-11 14:15:11 UTC
Responsible Changed
From-To: freebsd-bugs->yar

MFC reminder for me.
Comment 3 Yar Tikhiy freebsd_committer freebsd_triage 2002-03-08 16:43:22 UTC
State Changed
From-To: analyzed->closed

^U recognized by ddb(4) in -current and -stable now, thanks!