zinput icon indicating copy to clipboard operation
zinput copied to clipboard

Parts of askBool-generated questions can be unreadable

Open koachan opened this issue 3 years ago • 1 comments

I noticed that parts of questions made by zinput can be unreadable when used with dark/light-themed terminal. Sample program and its output:

const zinput = @import("zinput");

pub fn main() void {
    _ = zinput.askBool("The question is unreadable on light theme, and the y/n prompt is unreadable on dark theme") catch return;
}

How it looks on dark-themed terminal How it looks on light-themed terminal

koachan avatar Mar 21 '22 13:03 koachan

I see that the library uses some hardcoded color values, would it be okay if it's changed into a more neutral combination? If so then I'll prepare a PR for that.

https://github.com/ziglibs/zinput/blob/5e0d781eee025cfea271dd10c1939d201fe4fd25/src/main.zig#L48

koachan avatar Mar 21 '22 13:03 koachan