2
0
mirror of https://github.com/xvxx/phetch synced 2024-11-05 00:00:58 +00:00
This commit is contained in:
dvkt 2019-11-22 19:18:41 -08:00
parent fa22af8a83
commit f2c7018e5a

View File

@ -29,7 +29,7 @@ enum Action {
}
fn main() {
let response = phetch("phkt.io", 70, "/links");
let response = phetch("phkt.io", 70, "/");
let links = parse(&response);
println!("{:?}", links);
let mut cursor = Cursor { link: 0 };
@ -202,7 +202,7 @@ fn draw(buf: &str, cur: &Cursor) -> String {
_ => prefix = "",
}
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 {
out.push(' ');
}