From: Mayne, P. <pet...@hp...> - 2009-05-21 07:14:26
|
The JLine doc for jline.UnixTerminal says "All known unix systems (including Linux and Macintosh OS X) support the stty), so this implementation should work for an reasonable POSIX system." However, the system I'm using (HP (Tandem) NonStop) is UNIX-like, but presumably not enough like: the new default doesn't echo anything as a line is being typed, then echoes the line after Enter is typed. Fortunately activating the legacy console as described below does the right thing. I have no great interest in chasing up command line niceness. I'd rather ask, will the legacy console remain available, or is there a plan to remove it at some stage? If there is such a plan, can the legacy console please be left in for those of us on non-Windows, non-UNIX systems? Thanks. Incidentally, being a Windows, UNIX, and other user, I disagree with the "consistent behaviour across platforms" premise implied by having Ctrl-D exit a session on Windows: "consistent behaviour ... on each platform" is much better. On Windows, it should work like Windows. On UNIX, it should work like UNIX. On my platform, where by default neither Ctrl-D nor Ctrl-Z are used to quit a session, it should work like my platform. Why should a Windows user have to learn a different EOF character because it happens to be standard on some other platform? Ctrl-Z works everywhere else on Windows, why should Jython be different? I appreciate the (UNIX-centric) humour in " This might be considered to be an improvement :)" on Windows, but when attempting to "fix" this kind of thing, it's too easy to forget that in some places, it isn't broken. How do you know that Ctrl-D on my platform doesn't mean "halt the system immediately"? I'm not making this up: on a different widely used platform, the right control character in the right place intentionally does exactly that. PJDM -- Peter Mayne Hewlett-Packard Canberra, ACT, Australia -----Original Message----- From: Alan Kennedy [mailto:jyt...@xh...] Sent: Thursday, 14 May 2009 7:11 AM To: Jim Baker Cc: jyt...@li...; Andrea Subject: Re: [Jython-users] Jython 2.5.0 Release Candidate 2 out [Jim] > Instead of using control-Z, the console now defaults to using the Unix > standard of control-D for quitting a session. This might be considered to be > an improvement :) :-) Being a Windows and *nix user, I like to have consistent behaviour between cpython and jython on each platform. So it's kind of annoying to have cpython on Windows use the windows-standard Ctrl-Z and jython on Windows use the Unix-standard Ctrl-D. But a quick look at the registry file distributed with rc2 shows the following lines # To activate the legacy Jython console: # python.console=org.python.util.InteractiveConsole Uncommenting the second line does indeed restore Windows standard behaviour, Ctrl-Z quits the interpreter, as it should. The up and down keys always worked for command history on Jython, before jline, so I'm happy to keep using the "legacy" console. Alan. ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ Jython-users mailing list Jyt...@li... https://lists.sourceforge.net/lists/listinfo/jython-users |