jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • JRuby
  • JRUBY-2988

jirb does not echo characters to the terminal after suspend and resume in the shell

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: JRuby 1.1.4
  • Fix Version/s: JRuby 1.2
  • Component/s: Core Classes/Modules
  • Labels:
    None
  • Environment:
    Linux keter 2.6.24-19-generic #1 SMP Wed Aug 20 17:53:40 UTC 2008 x86_64 GNU/Linux
    jruby 1.1.4 (ruby 1.8.6 patchlevel 114) (2008-09-09 rev 6586) [amd64-java]

Description

ai@keter% jirb
irb(main):001:0> puts "hello"
hello
=> nil
irb(main):002:0> (Ctrl-Z)
zsh: suspended jirb
ai@keter% fg
[1] + continued jirb

irb(main):003:0*

At this point, characters are not being echoed as they are typed at the prompt. They are echoed only after 'Return' is pressed.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Anton Ivanov added a comment - 10/Sep/08 2:07 AM

Sorry about the title, it's late. It should be "jirb does not echo characters to the terminal after suspend and resume in the shell"

but I can't find a way of changing it.

Show
Anton Ivanov added a comment - 10/Sep/08 2:07 AM Sorry about the title, it's late. It should be "jirb does not echo characters to the terminal after suspend and resume in the shell" but I can't find a way of changing it.
Hide
Permalink
Charles Oliver Nutter added a comment - 09/Feb/09 12:08 PM

Well, this is a very unusual one. It appears to be something failing in jline itself (as usual) and now it actually raises an IOException. I'll investigate a bit more.

Show
Charles Oliver Nutter added a comment - 09/Feb/09 12:08 PM Well, this is a very unusual one. It appears to be something failing in jline itself (as usual) and now it actually raises an IOException. I'll investigate a bit more.
Hide
Permalink
Charles Oliver Nutter added a comment - 09/Feb/09 12:47 PM

I filed JRUBY-3384 for the IOException, which appears to affect only OS X. Now I can reproduce your original issue, where resumed jirb does not echo characters.

Show
Charles Oliver Nutter added a comment - 09/Feb/09 12:47 PM I filed JRUBY-3384 for the IOException, which appears to affect only OS X. Now I can reproduce your original issue, where resumed jirb does not echo characters.
Hide
Permalink
Charles Oliver Nutter added a comment - 09/Feb/09 1:24 PM

I committed a fix in r9076 that tells jline to initialize the terminal after each readline, since after a suspend the terminal seems to need to be reinitialized. Since we can't easily detect suspension, initialize after every readline. Probably not fast, but this is for interactive terminals anyway...so who cares?

Show
Charles Oliver Nutter added a comment - 09/Feb/09 1:24 PM I committed a fix in r9076 that tells jline to initialize the terminal after each readline, since after a suspend the terminal seems to need to be reinitialized. Since we can't easily detect suspension, initialize after every readline. Probably not fast, but this is for interactive terminals anyway...so who cares?

People

  • Assignee:
    Charles Oliver Nutter
    Reporter:
    Anton Ivanov
Vote (0)
Watch (0)

Dates

  • Created:
    10/Sep/08 2:04 AM
    Updated:
    21/Mar/09 1:14 PM
    Resolved:
    09/Feb/09 1:24 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.