Highline request method will not use the same row

Setup:

  • Bash
  • Ruby 1.9.2
  • highline (1.6.13)

Description:

I'm pretty used to being high with some other projects, but haven't used it after a few months. Now, with a new installation on Ruby 1.9.2, it seems that it is not allowed to respond to requests on the same line.

So before, I would see something like:

require "highline/import" ask "What is your favorite color?" 

And we get:

  What is your favorite color? | 

Now I see something like:

  What is your favorite color? | 

Where the pipe symbol (|) is my end cursor.

Any ideas why this change happened?

+4
source share
1 answer

Put a space at the end of the question line, for example

 ask "What is your favorite color? " 
+7
source

All Articles