mirror of
https://github.com/xvxx/phetch
synced 2024-11-05 00:00:58 +00:00
tweak
This commit is contained in:
parent
fa22af8a83
commit
f2c7018e5a
@ -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(' ');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user