Обсуждение: Re: No backspace key in the psql command-line tool?
Rob Yampolsky wrote: > > Stupid question. > > How do you get the backspace key to work in the psql command-line > tool? Just echos ^H's. I'm running on Mandrake Linux 7.2, and it works > from the system console, but not from a konsole X terminal (or from a > vt220-based telnet session from Windows - using CRT's telnet). > > Curses programs don't seem to have this problem, but then again, it > doesn't look like psql uses curses anyway. But I have seen a similar > problem when I telnet from a konsole window on my Linux box into an AIX > box. > Try another telnet client. Nils
On Tue, 17 Apr 2001, Nils Zonneveld wrote:
> > Stupid question.
> >
> > How do you get the backspace key to work in the psql command-line
> > tool?   Just echos ^H's. I'm running on Mandrake Linux 7.2, and it works
> > from the system console, but not from a konsole X terminal (or from a
> > vt220-based telnet session from Windows - using CRT's telnet).
> >
> > Curses programs don't seem to have this problem, but then again, it
> > doesn't look like psql uses curses anyway.  But I have seen a similar
> > problem when I telnet from a konsole window on my Linux box into an AIX
> > box.
> >
>
> Try another telnet client.
A better answer:
In the shell, type
    stty erase ^H
It will make sure ^H actually is the erase (backspace) character.
-- Brett
                   http://www.chapelperilous.net/btfwk/
------------------------------------------------------------------------
I don't have any solution but I certainly admire the problem.
        -- Ashleigh Brilliant
			
		Thanks. I told you it was stupid. But not as stupid as it sounds. I had tried stty -a to find out what the erase character was (reported ^?), and had tried typing that as my backspace, but it didn't work. Oh well, stty erase ^H does work. Thanks again, Rob "Brett W. McCoy" wrote: > On Tue, 17 Apr 2001, Nils Zonneveld wrote: > > > > Stupid question. > > > > > > How do you get the backspace key to work in the psql command-line > > > tool? Just echos ^H's. I'm running on Mandrake Linux 7.2, and it works > > > from the system console, but not from a konsole X terminal (or from a > > > vt220-based telnet session from Windows - using CRT's telnet). > > > > > > Curses programs don't seem to have this problem, but then again, it > > > doesn't look like psql uses curses anyway. But I have seen a similar > > > problem when I telnet from a konsole window on my Linux box into an AIX > > > box. > > > > > > > Try another telnet client. > > A better answer: > > In the shell, type > > stty erase ^H > > It will make sure ^H actually is the erase (backspace) character. > > -- Brett > http://www.chapelperilous.net/btfwk/ > ------------------------------------------------------------------------ > I don't have any solution but I certainly admire the problem. > -- Ashleigh Brilliant > > ---------------------------(end of broadcast)--------------------------- > TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/users-lounge/docs/faq.html