Skip to content

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

@MadBomber

Description

@MadBomber

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions