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

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

P: n/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/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.
Sep 19 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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:

http://mail.python.org/pipermail/pyt...ne/266661.html

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
Sep 19 '08 #2

P: n/a
Ant
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.
Sep 21 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.