No backspace key in the psql command-line tool?

Started by Rob Yampolskyalmost 25 years ago5 messagesgeneral
Jump to latest
#1Rob Yampolsky
ryampols@cjds.com

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.

Thanks,
Rob

#2Nils Zonneveld
nils@mbit.nl
In reply to: Rob Yampolsky (#1)
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

#3Brett W. McCoy
bmccoy@chapelperilous.net
In reply to: Nils Zonneveld (#2)
Re: Re: No backspace key in the psql command-line tool?

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

#4mike
matrix@quadrent.net
In reply to: Rob Yampolsky (#1)
Re: No backspace key in the psql command-line tool?

depending on your client, you should just be able to turn naclspace into a
delete and a delte into a backspace.
in SecureCRT its found in your connection profile under your keyboard
settings

you could also try running VT100 as well

Mike

----- Original Message -----
From: "Rob Yampolsky" <ryampols@cjds.com>
To: <pgsql-general@postgresql.org>
Sent: Tuesday, April 17, 2001 1:49 PM
Subject: No backspace key in the psql command-line tool?

Show quoted text

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.

Thanks,
Rob

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/users-lounge/docs/faq.html

#5Rob Yampolsky
ryampols@cjds.com
In reply to: Brett W. McCoy (#3)
Re: No backspace key in the psql command-line tool?

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:

Show quoted text

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