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

get_line_to_chars emits newline #2787

Open
ak-1 opened this issue Jan 22, 2025 · 0 comments
Open

get_line_to_chars emits newline #2787

ak-1 opened this issue Jan 22, 2025 · 0 comments

Comments

@ak-1
Copy link

ak-1 commented Jan 22, 2025

Im trying to create a REPL prompt that reads a line of text as a string:

loop :- 
    put_char(>),
    flush_output,
    get_line_to_chars(user_input, T, ""),
    format("echo ~s", [T]),
    loop. 

But this puts a spurious newline between the prompt (">") and the user input.

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

No branches or pull requests

1 participant