pull/6/head
dvkt 5 years ago
parent fa22af8a83
commit f2c7018e5a

@ -29,7 +29,7 @@ enum Action {
} }
fn main() { fn main() {
let response = phetch("phkt.io", 70, "/links"); let response = phetch("phkt.io", 70, "/");
let links = parse(&response); let links = parse(&response);
println!("{:?}", links); println!("{:?}", links);
let mut cursor = Cursor { link: 0 }; let mut cursor = Cursor { link: 0 };
@ -202,7 +202,7 @@ fn draw(buf: &str, cur: &Cursor) -> String {
_ => prefix = "", _ => prefix = "",
} }
if is_link && cur.link > 0 && cur.link == links { if is_link && cur.link > 0 && cur.link == links {
out.push_str("\x1b[93;1m*\x1b[0m"); out.push_str("\x1b[92;1m*\x1b[0m");
} else { } else {
out.push(' '); out.push(' ');
} }

Loading…
Cancel
Save