Message6938

Author slestak
Recipients amak, fwierzbicki, slestak
Date 2012-03-20.21:51:54
SpamBayes Score 6.486478e-13
Marked as misclassified No
Message-id <CAAuMJGETKadbWk=Td9=wkLECe4JC4ycVs-DZ3odE_5RS591wqg@mail.gmail.com>
In-reply-to <1332279067.63.0.629476469065.issue1823@psf.upfronthosting.co.za>
Content
I'm sorry.  I do not know how to use the jline method.  import it and
call it in the jython interpreter?

I also noticed the problem does not occur when you type exit().  Only
when you exit the interpreter with a Ctl-D it seems.

I see jline has an IsEchoEnabled() method.  Maybe it needs to check
before instantiating jline and just put it back to what it was, all
the time.

On Tue, Mar 20, 2012 at 5:31 PM, Alan Kennedy <report@bugs.jython.org> wrote:
>
> Alan Kennedy <jython-dev@xhaus.com> added the comment:
>
> So a bit of googling reveals that jline can change your terminal settings, particularly the echo setting, which explains the behaviour you're seeing.
>
> This jline message seems relevant
>
> Why doesn't jline enable the echo after exit?
> https://groups.google.com/forum/#!topic/jline-users/I8r3-UYnbQM
>
> Particluarly, it looks like calling
>
> jline.TerminalSupport.restore()
>
> Might restore your terminal.
>
> http://www.jarvana.com/jarvana/view/org/sonatype/jline/jline/2.3/jline-2.3-javadoc.jar!/jline/TerminalSupport.html
>
> Can you give that a try? If it works, perhaps we'll have to add such a call to jython exit hooks, when jline is in use.
>
> _______________________________________
> Jython tracker <report@bugs.jython.org>
> <http://bugs.jython.org/issue1823>
> _______________________________________
History
Date User Action Args
2012-03-20 21:51:55slestaksetrecipients: + slestak, fwierzbicki, amak
2012-03-20 21:51:55slestaklinkissue1823 messages
2012-03-20 21:51:54slestakcreate