RSS Amplifier

galvanist · Feb 21, 2014

Fixing bpython's delete

0
Sign in to vote or save

This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.

A guy named Shironoo found one solution ( which I read in english ) to a problem I’d been having with bpython over SSH. Namely that using the delete key ruins the world , or at least kills the current line. 
 My slightly modified (temporary) solution is to make this change: 
 
 in bpython/cli.py :
 
 in def p_key(self, key): 
 
 replace if platform.system() ==…

A guy named Shironoo found one solution (which I read in english) to a problem I’d been having with bpython over SSH. Namely that using the delete key ruins the world, or at least kills the current line.

My slightly modified (temporary) solution is to make this change:

  • in bpython/cli.py:
    • in def p_key(self, key):
      • replace if platform.system() == 'Windows':
      • with if platform.system() in ('Windows', 'Linux'):

You can find your bpython install with this kinda thing:

Read on /posts/2014-02-21-fixing-bpythons-delete/

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.