Problem with Python shell through Cygwin Screen (Python/Vim/Screencombo)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ant

    Problem with Python shell through Cygwin Screen (Python/Vim/Screencombo)

    Hi all,

    There's a sweet combination of tools that you can assemble using Vim,
    a Python shell (or any shell for that matter) and GNU screen, where
    you essentially send selected text from Vim to the Python shell. (See
    http://technotales.wordpress.com/200...slime-for-vim/ for
    more details - though I had to tweak the script a bit to get it to
    work on Windows - line ending interpretation problem)

    This works great in Linux, and also in Windows using the Cygwin build
    of Python, but when you call:

    screen -S py -s python

    using the Windows build of Python, the shell just hangs. Does anyone
    know if this is a known issue with screen/Python, or if there is a
    workaround, as I'd prefer to have just a single Python instance
    installed rather than having Cygwin python and windows Python both
    installed.

    Cheers,

    Ant.
  • Jason Tishler

    #2
    Re: Problem with Python shell through Cygwin Screen (Python/Vim/Screencombo)

    Ant,

    On Fri, Sep 19, 2008 at 03:10:10AM -0700, Ant wrote:
    [snip]
    This works great in Linux, and also in Windows using the Cygwin build
    of Python, but when you call:
    >
    screen -S py -s python
    >
    using the Windows build of Python, the shell just hangs. Does anyone
    know if this is a known issue with screen/Python, or if there is a
    workaround, as I'd prefer to have just a single Python instance
    installed rather than having Cygwin python and windows Python both
    installed.
    There are known issues when trying to run a Windows program that
    directly accesses the console under Cygwin. For example:



    AFAICT, you will have to use Cygwin Python with screen.

    Jason

    --
    PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
    Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6

    Comment

    • Ant

      #3
      Re: Problem with Python shell through Cygwin Screen(Python/Vim/Screen combo)

      On Sep 19, 7:08 pm, Jason Tishler <ja...@tishler. netwrote:
      ....
      There are known issues when trying to run a Windows program that
      directly accesses the console under Cygwin.  For example:
      >
         http://mail.python.org/pipermail/pyt...ne/266661.html
      >
      AFAICT, you will have to use Cygwin Python with screen.
      Thanks for the info. Shame but - cygwin python for this setup it is
      (Though I may hunt for a native windows port of screen rather than the
      cygwin one.)

      Cheers,

      Ant.

      Comment

      Working...