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

A

Ant

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/2007/10/03/like-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.
 
J

Jason Tishler

Ant,

[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:

http://mail.python.org/pipermail/python-list/2004-June/266661.html

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

Jason
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top