[IronPython] IronPython Console on Unix.
Michael Foord
fuzzyman at voidspace.org.uk
Sat Jul 22 23:56:00 CEST 2006
John Tobler wrote:
>
> > Just to get your Unix input on this: Would us checking
> Environment.OSVersion.Platform
> > and switch from Ctrl-Z to Ctrl-D for Unix sound ok to you? The
> reason I ask is we don't
> > have Environment.EndOfFileDescriptor :).
>
> Considering that CTRL-Z has indicated an exit from Python Consoles on
> all platforms, including Windows, for about as long as anyone can
> remember, it seems a bit presumptious of the IronPython community to
> make such a drastic change so cavalierly! My vote? NO!
>
Hmm... I've just tried it on several windows interpreters.
Ctrl-Z as an exit works on Python 2.2.3 (???), but not Python 2.3, 2.4,
or 2.5b1
Personally I'm +1 on the change. Sticking with a Unix convention that
hasn't worked on Windows for years seems odd... :-p
Fuzzyman
http://www.voidspace.org.uk/python/index.shtml
> John Tobler
>
> -----
>
> On 7/12/06, *Dino Viehland* <dinov at exchange.microsoft.com
> <mailto:dinov at exchange.microsoft.com>> wrote:
>
> Thanks for the bug report Miguel. I think the reason we're doing
> this today is because we're using Console.ReadKey which returns
> the raw key info instead of EOF when there's no input
> available. I've opened CodePlex bug 904 to track the issue (
> http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId=904
> <http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId=904>).
>
> Just to get your Unix input on this: Would us checking
> Environment.OSVersion.Platform and switch from Ctrl-Z to Ctrl-D
> for Unix sound ok to you? The reason I ask is we don't have
> Environment.EndOfFileDescriptor :).
>
> -----Original Message-----
> From: users-bounces at lists.ironpython.com
> <mailto:users-bounces at lists.ironpython.com> [mailto:
> users-bounces at lists.ironpython.com
> <mailto:users-bounces at lists.ironpython.com>] On Behalf Of Miguel
> de Icaza
> Sent: Wednesday, July 12, 2006 11:30 AM
> To: Discussion of IronPython
> Subject: [IronPython] IronPython Console on Unix.
>
> Hello,
>
> Something in IronPython is now looking for Control-z, which is
> fine on Windows, but on Unix, Control-Z stands for "suspend
> application".
>
> In Unix, the end-of-file descriptor is control-d; Am not sure why
> the code is actually looking for a Control-Z, while it could be
> checking whether there is input available instead.
>
> miguel.
> _______________________________________________
> users mailing list
> users at lists.ironpython.com <mailto:users at lists.ironpython.com>
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
> <http://lists.ironpython.com/listinfo.cgi/users-ironpython.com>
> _______________________________________________
> users mailing list
> users at lists.ironpython.com <mailto:users at lists.ironpython.com>
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> users mailing list
> users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
More information about the Ironpython-users
mailing list