gtaubman / doneyet

A NCurses based To-Do list manager!
MIT License
31 stars 6 forks source link

Backspace and Delete keys not working #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1.Cannnot use delete or backspace when adding or editing items

What is the expected output? What do you see instead?

cursor does not move when these keys are pressed

What version of the product are you using? On what operating system?

doneyet 76-1 from Arch Linux AUR

Please provide any additional information below.

Kernel: 2.6.32-ARCH

Original issue reported on code.google.com by jlyon...@gmail.com on 10 Jan 2010 at 8:47

GoogleCodeExporter commented 9 years ago
Hello!
I think this is probably a problem with your terminal.  Does Control-H work?

Gabe

Original comment by gtaub...@gmail.com on 13 Jan 2010 at 6:49

GoogleCodeExporter commented 9 years ago
I am experiencing the same issue on Arch Linux with LXDE.  Using LXTerminal, 
delete
does not work but CTRL-H does.

Original comment by fcuk...@gmail.com on 7 Apr 2010 at 1:49

GoogleCodeExporter commented 9 years ago
fcuk112,

Try a diffrent terminal and see if that works. I am pretty sure Aterm and Xterm 
work 
with doneyet

Original comment by jlyon...@gmail.com on 7 Apr 2010 at 5:49

GoogleCodeExporter commented 9 years ago
Same problem with OSX terminal. Delete and backspace don't work, but CTRL-h yes.

Original comment by paol...@gmail.com on 16 Apr 2010 at 4:47

GoogleCodeExporter commented 9 years ago
I believe under OS X you just need to do what was described in Issue 13.

Original comment by gtaub...@gmail.com on 16 Apr 2010 at 10:22

GoogleCodeExporter commented 9 years ago
With this patch, backspace is working for me.

Index: dialog-box.cc
===================================================================
--- dialog-box.cc       (Revision 80)
+++ dialog-box.cc       (Arbeitskopie)
@@ -98,6 +98,9 @@
       case 263: // delete
         form_driver(form,REQ_DEL_PREV);
         break;
+      case 127: // delete
+        form_driver(form,REQ_DEL_PREV);
+        break;
       case '\r':
         done = true;
         //form_driver(form, REQ_NEW_LINE);

Original comment by christop...@gmail.com on 4 Nov 2010 at 4:25

GoogleCodeExporter commented 9 years ago
Thanks Christopher, and sorry for the slow reply.  I was out of town.  The 
patch (or a variant thereof) is applied at head.  I didn't have a compiler on 
this machine so apologies if I've broken the build.

Original comment by gtaub...@gmail.com on 6 Nov 2010 at 9:06