Add ability handle more than one character at a time #4

Merged
alex merged 4 commits from string-commands into main 2025-11-19 18:22:49 +01:00
Showing only changes of commit 78cc3647c7 - Show all commits

View File

@@ -10,6 +10,6 @@ pub type NotUsed
@external(erlang, "shell", "start_interactive") @external(erlang, "shell", "start_interactive")
pub fn shell_start_interactive(options: #(atom.Atom, atom.Atom)) -> NotUsed pub fn shell_start_interactive(options: #(atom.Atom, atom.Atom)) -> NotUsed
// https://www.erlang.org/doc/apps/stdlib/io.html#get_line/1 // https://www.erlang.org/doc/apps/stdlib/io.html#get_chars/2
@external(erlang, "io", "get_chars") @external(erlang, "io", "get_chars")
fn io_get_chars(prompt: String, count: Int) -> String fn io_get_chars(prompt: String, count: Int) -> String