Re: No backspace key in the psql command-line tool?

From: Rob Yampolsky <ryampols(at)cjds(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: No backspace key in the psql command-line tool?
Date: 2001-04-18 15:20:59
Message-ID: 3ADDB0DB.D7D8D574@cjds.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Steve Wampler 2001-04-18 15:28:19 7.1 bug fix question
Previous Message Tom Lane 2001-04-18 15:15:41 Re: How to read a query plan?