473,406 Members | 2,208 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Python shell interpreting delete key as tilde?

I'm running Python 2.3.5 and 2.4.1 under Debian Sarge. Instead of
deleting the character after the cursor, pressing my "delete" key in an
interactive Python window causes a system beep and inserts a tilde
character. This behavior occurs across all of the terminals I've tried
(xterm, Konsole, real Linux terminal), but does not occur when running
bash instead of python. Other Readline-provided functionality (moving
the cursor, history) seems to work fine.

The delete key was working fine in Python up until a few days ago, and I
don't remember making any changes that should have affected it.

If anyone knows what could be causing this problem, please explain. It's
driving me crazy!
Jan 21 '06 #1
2 2733
Leif K-Brooks wrote:
I'm running Python 2.3.5 and 2.4.1 under Debian Sarge. Instead of
deleting the character after the cursor, pressing my "delete" key in an
interactive Python window causes a system beep and inserts a tilde
character.
that's probably because the delete key can be set up to send a "\e[3~"
sequence, and readline isn't properly configured to understand that.
This behavior occurs across all of the terminals I've tried
(xterm, Konsole, real Linux terminal), but does not occur when running
bash instead of python. Other Readline-provided functionality (moving
the cursor, history) seems to work fine.

The delete key was working fine in Python up until a few days ago, and I
don't remember making any changes that should have affected it.

If anyone knows what could be causing this problem, please explain. It's
driving me crazy!


this page might help:

http://www.ibb.net/~anne/keyboard.html

or you could switch to a less lame operating system ;-) (duck).

</F>

Jan 21 '06 #2
Fredrik Lundh wrote:
[snip..]

this page might help:

http://www.ibb.net/~anne/keyboard.html

or you could switch to a less lame operating system ;-) (duck).
Not like you to duck when sending flames Fredrik ;-)

Fuzzy

</F>


Jan 21 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

50
by: Edward K. Ream | last post by:
I would like to say a few (actually more than a few) words here about some recent discoveries I have made concerning the interaction of Leo and Python. If you don't want to hear an inventor enthuse...
4
by: Logan | last post by:
Several people asked me for the following HOWTO, so I decided to post it here (though it is still very 'alpha' and might contain many (?) mistakes; didn't test what I wrote, but wrote it - more or...
20
by: Matthew Thorley | last post by:
My friend sent me an email asking this: > I'm attemtping to decide which scripting language I should master and > was wondering if it's possible to do > these unixy awkish commands in python:...
9
by: Jeff Wagner | last post by:
I have a project of converting numerous DOS cmd shell scripts to Python. Is there a tutorial to getting started? Thanks, Jeff
3
by: Gros Bedo | last post by:
Hello :-) I have a question about Python and Linux shell. I have a python program which is permanently resident in the end-user system. I'm currently producing a RPM package, and it works nicely....
0
by: Cameron Simpson | last post by:
On 17Aug2008 21:25, John Nagle <nagle@animats.comwrote: Because $HOSTNAME is a bash specific variable, set by bash but NOT EXPORTED! Like $0 and a bunch of other "private" variables, subprocesses...
8
by: james.kirin39 | last post by:
Hi everyone, After having used Python on Linux for some time, I now have to do Python coding on Windows. I am big fan of the interactive Python shell to test, eg, regexps. Is there an...
0
by: Python Nutter | last post by:
Mini install guide for python on the iPhone: Cydia =Install SSH helps make initial configuration easier until you get used to MobileTerminal Cydia =Install MobileTerminal (closest to a bash...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.