GithubHelp home page GithubHelp logo

Backspace not working about highline HOT 9 CLOSED

cfbrobak avatar cfbrobak commented on June 25, 2024
Backspace not working

from highline.

Comments (9)

JEG2 avatar JEG2 commented on June 25, 2024

The backspace key is working for me, so it must depend on how input is being gathered.

Can you tell me what this prints for you?

p HighLine::SystemExtensions::CHARACTER_MODE

from highline.

cfbrobak avatar cfbrobak commented on June 25, 2024

Output is this:

irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'highline/import'
=> true
irb(main):003:0> p HighLine::SystemExtensions::CHARACTER_MODE
"Win32API"
=> nil
irb(main):004:0>

Claus

from highline.

astounding avatar astounding commented on June 25, 2024

This issue looks VERY similar to issue 17 #17 which was a problem with a missing ERASE_LINE constant. I submitted a pull request that is one way to fix my issue (and if these two issues are really the same issue, it might fix this too).

Then again, as this one isn't setting the overwrite, they are likely different. But the error message with both is identical.

from highline.

JEG2 avatar JEG2 commented on June 25, 2024

I have release HighLine 1.6.6 with your fix in it. Does that solve this issue for you?

from highline.

astounding avatar astounding commented on June 25, 2024

My pull request (issue 18) contained one mistake. The argument to HighLine.Style() was a string when it should have been a symbol. I just submitted a new pull request (issue 19) to correct my mistake. Sorry about that!

from highline.

JEG2 avatar JEG2 commented on June 25, 2024

I've released 1.6.7 with the new fix. Please let me know if it solves this issue.

from highline.

astounding avatar astounding commented on June 25, 2024

1.6.7 fixes my problem (issue #17, 18, and 19). Thank you! When I try cfbrobak's example code, I do not get an error, but I am not running JRuby.

from highline.

astounding avatar astounding commented on June 25, 2024

Ah, I think I found cfbroback's problem.... the ERASE_CHAR constant no longer exists. I just submitted pull request (issue #20) that fixes it by replacing ERASE_CHAR with HighLine.Style(:erase_char).code I bet that will fix this issue (#16).

from highline.

JEG2 avatar JEG2 commented on June 25, 2024

I've release 1.6.8 with this new fix, so I'm going to assume this is now solved. Just open a new issue if that's not the case.

from highline.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.