Skip to content

Commit

Permalink
fix(ci): fix unknown function error
Browse files Browse the repository at this point in the history
  • Loading branch information
StunxFS committed Nov 5, 2023
1 parent 1d0e804 commit 4d2c77e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/std/src/console/mod.ri
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
import core;
import c/libc;

public alias print := core.console_print;
public alias println := core.console_println;
public alias eprint := core.console_eprint;
public alias eprintln := core.console_eprintln;
public alias write := core.console_write;
public alias writeln := core.console_writeln;
public alias ewrite := core.console_ewrite;
public alias ewriteln := core.console_ewriteln;
public alias is_atty := core.console_is_atty;

/// Returns a one-line string from stdin, after printing a prompt. In
/// the event of error (end of input) or a empty string, returns `none`.
public func readln(prompt: string := "") -> ?string {
if prompt.len > 0 {
print(prompt);
write(prompt);
}
_ = unsafe { libc.fflush(libc.stdout) };
max: usize := 0;
Expand Down

0 comments on commit 4d2c77e

Please sign in to comment.