M cmd/sshkey/main.ha => cmd/sshkey/main.ha +1 -1
@@ 39,7 39,7 @@ export fn main() void = {
tty::noecho(&termios)!;
fmt::errorf("Enter passphrase: ")!;
- const pass = bufio::scanline(tty)!;
+ const pass = bufio::read_line(tty)!;
tty::termios_restore(&termios);
const pass = match (pass) {
case io::EOF =>
M net/ssh/proto.ha => net/ssh/proto.ha +1 -1
@@ 6,7 6,7 @@ use strings;
use types;
fn readbyte(src: *memio::stream) (u8 | protoerror) = {
- match (bufio::scanbyte(src)!) {
+ match (bufio::read_byte(src)!) {
case let b: u8 =>
return b;
case io::EOF =>