472,139 Members | 1,688 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

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

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
2 2060
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
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.

Similar topics

7 posts views Thread by Robin Becker | last post: by
2 posts views Thread by Jorgen Grahn | last post: by
42 posts views Thread by Fred Ma | last post: by
10 posts views Thread by Kotlin Sam | last post: by
reply views Thread by Pekka Niiranen | last post: by
2 posts views Thread by Stewart Midwinter | last post: by
reply views Thread by Stewart Midwinter | last post: by
40 posts views Thread by =?iso-8859-1?B?QW5kcuk=?= | last post: by
reply views Thread by leo001 | last post: by

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.