By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,767 Members | 1,114 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,767 IT Pros & Developers. It's quick & easy.

backspace problems

P: n/a
kj


If I'm in the python interactive interpreter, I get a beep when I
hit the backspace key.

I must confess, though, that my terminal is "complicated", to put
it mildly: I work on a Mac running Leopard; I open a Terminal
session, and through it I ssh to an Ubuntu server; on this server
I connect to a permanently-running GNU screen session, which has
several multiplexed windows going, all running zsh; it is in this
convoluted environment that I run the python interactive interpreter.[*]

I've determined that the problem occurs only within the GNU screen
session. GNU screen is one of the coolest Unix programs ever, one
that literally changed the way I work, is there's no way I'll stop
using it. So I need to figure out how to fix this.

How can I determine the character that the python session is
receiving when I hit the backspace key, and how can I tell it to
handle it as a backward-delete character?

TIA!

kynn
[*] Actually, it gets worse. My .zshrc file (which gets executed
whenever an interactive shell is started) runs the command

bindkey '^[[3~' backward-delete-char

because, otherwise my regular zsh interaction would not handle the
backspace key properly. But the problem I described above occurs
whether this command is executed or not.
--
NOTE: In my address everything before the first period is backwards;
and the last period, and everything after it, should be discarded.
Jul 29 '08 #1
Share this Question
Share on Google+
1 Reply

P: n/a
kj
In <g6**********@reader1.panix.comkj <so***@987jk.com.invalidwrites:

<snip>

Please ignore my question. I found a general solution that works
not only for the python interactive interpreter but also for all
programs that have a readline-type interaction. This solution has
nothing to do with Python, but if anyone's interested, it's here:

http://www.macosxhints.com/article.p...space%2Bdebian

kynn
--
NOTE: In my address everything before the first period is backwards;
and the last period, and everything after it, should be discarded.
Jul 29 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.