# HG changeset patch # User Sadrul Habib Chowdhury # Date 1162748229 0 # Node ID d9d28bd7971557e4db954989fea4bd83767ad478 # Parent 065e7ac30338321da9513625abbe06bd381d74d2 [gaim-migrate @ 17673] erasechar() returns the erase character (VERASE) from termios. This may solve the backspace problem for Sebastian Noack. committer: Tailor Script diff -r 065e7ac30338 -r d9d28bd79715 console/libgnt/gntentry.c --- a/console/libgnt/gntentry.c Sun Nov 05 17:28:33 2006 +0000 +++ b/console/libgnt/gntentry.c Sun Nov 05 17:37:09 2006 +0000 @@ -536,6 +536,8 @@ gnt_entry_class_init(GntEntryClass *klass) { GntBindableClass *bindable = GNT_BINDABLE_CLASS(klass); + char s[2] = {erasechar(), 0}; + parent_class = GNT_WIDGET_CLASS(klass); parent_class->destroy = gnt_entry_destroy; parent_class->draw = gnt_entry_draw; @@ -552,6 +554,7 @@ gnt_bindable_register_binding(bindable, "cursor-end", GNT_KEY_END, NULL); gnt_bindable_class_register_action(bindable, "delete-prev", backspace, GNT_KEY_BACKSPACE, NULL); + gnt_bindable_register_binding(bindable, "delete-prev", s, NULL); gnt_bindable_class_register_action(bindable, "delete-next", delkey, GNT_KEY_DEL, NULL); gnt_bindable_register_binding(bindable, "delete-next", GNT_KEY_CTRL_D, NULL);