Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

newline not honored in Reline.readline("\nMy Prompt: ") #636

Open
MadBomber opened this issue Jan 13, 2024 · 0 comments
Open

newline not honored in Reline.readline("\nMy Prompt: ") #636

MadBomber opened this issue Jan 13, 2024 · 0 comments

Comments

@MadBomber
Copy link

Description

When I start my prompt with "\n" I am expecting that character to start a new line not to be printed to the terminal as two characters "" and "n" in front of my prompt text

$ ruby temp.rb
\nMy Prompt: hello world
hello world

$ cat temp.rb
require 'reline'
answer = Reline.readline("\nMy Prompt: ")
puts answer

Ruby version 3.3.0

Terminal Emulator

iTerm2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant