Re: Curses Problem in Detecting Backspace

2008-09-02 Thread Yedidyah Bar-David
On Tue, Sep 02, 2008 at 09:51:16AM +0300, Nadav Har'El wrote: > On Tue, Sep 02, 2008, Yedidyah Bar-David wrote about "Re: Curses Problem in > Detecting Backspace": > > Not intending to start a flame war, but this is against the Debian > > policy, which is als

Re: Curses Problem in Detecting Backspace

2008-09-01 Thread Nadav Har'El
On Tue, Sep 02, 2008, Yedidyah Bar-David wrote about "Re: Curses Problem in Detecting Backspace": > Not intending to start a flame war, but this is against the Debian > policy, which is also assumed by the "Linux Backspace/Delete > mini-HOWTO". It specifically say

Re: Curses Problem in Detecting Backspace

2008-09-01 Thread Yedidyah Bar-David
On Tue, Sep 02, 2008 at 08:59:41AM +0300, Nadav Har'El wrote: > The first thing you need to check is whether your terminal emulator (xterm, > or whatever you use) sends a backspace (^H, or ASCII 8) when you press the > backspace key. From your post it appears it doesn't, and you need to check > why

Re: Curses Problem in Detecting Backspace

2008-09-01 Thread Nadav Har'El
On Mon, Sep 01, 2008, Shlomi Fish wrote about "Re: Curses Problem in Detecting Backspace": > > > > It's looks like your BACKSPACE mapped to delete. > I found a workaround for this problem in the code for Curses::UI::Common. > There they have: > >

Re: Curses Problem in Detecting Backspace

2008-09-01 Thread Nadav Har'El
On Mon, Sep 01, 2008, Shlomi Fish wrote about "Re: Curses Problem in Detecting Backspace": > On Monday 01 September 2008, Valery Reznic wrote: > > It's looks like your BACKSPACE mapped to delete. > > > > OK, but what should I do about it? This problem has alw

Re: Curses Problem in Detecting Backspace

2008-09-01 Thread Shlomi Fish
On Monday 01 September 2008, Yedidyah Bar-David wrote: > On Mon, Sep 01, 2008 at 12:45:50PM +0300, Shlomi Fish wrote: > > On Monday 01 September 2008, Valery Reznic wrote: > > > It's looks like your BACKSPACE mapped to delete. > > > > OK, but what should I do about it? > > There are many resources

Re: Curses Problem in Detecting Backspace

2008-09-01 Thread Yedidyah Bar-David
On Mon, Sep 01, 2008 at 12:45:50PM +0300, Shlomi Fish wrote: > On Monday 01 September 2008, Valery Reznic wrote: > > It's looks like your BACKSPACE mapped to delete. > > > > OK, but what should I do about it? There are many resources about this on the net. I thought backspace/delete problems are

Re: Curses Problem in Detecting Backspace

2008-09-01 Thread Valery Reznic
--- On Mon, 9/1/08, Shlomi Fish <[EMAIL PROTECTED]> wrote: > From: Shlomi Fish <[EMAIL PROTECTED]> > Subject: Re: Curses Problem in Detecting Backspace > To: [EMAIL PROTECTED] > Cc: "Linux-IL" , "Perl in Israel" <[EMAIL PROTECTED]> > Dat

Re: Curses Problem in Detecting Backspace

2008-09-01 Thread Shlomi Fish
<[EMAIL PROTECTED]> > > Subject: Curses Problem in Detecting Backspace > > To: "Linux-IL" , "Perl in Israel" > > <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] > > Date: Monday, September 1, 2008, 11:42 AM > > Hi all! > > > > I

Re: Curses Problem in Detecting Backspace

2008-09-01 Thread Valery Reznic
It's looks like your BACKSPACE mapped to delete. Valery --- On Mon, 9/1/08, Shlomi Fish <[EMAIL PROTECTED]> wrote: > From: Shlomi Fish <[EMAIL PROTECTED]> > Subject: Curses Problem in Detecting Backspace > To: "Linux-IL" , "Perl in Israel" <

Curses Problem in Detecting Backspace

2008-09-01 Thread Shlomi Fish
Hi all! I'm trying to detect Backspace input using Curses/Ncurses. So I have the following Perl script that isolates the problem I'm having: {{ #!/usr/bin/perl use strict; use warnings; use Curses; my $main_win = Curses->new(); initscr(); noecho(); $main_win->keypad(1); my $char = $m