max-niederman / ttyper

Terminal-based typing test.
MIT License
1.05k stars 76 forks source link

Incorrectly showing underlines in Conemu on Windows 7 #121

Open goyalyashpal opened 4 months ago

goyalyashpal commented 4 months ago

hi! i have tried changing the config, but it already says none in the underline part of it (but the underline is used regardless)

my aim is to make ttyper work on win 7. i was using conemu terminal there.

version: 1.4.1 (i will update to 1.5.0 someday later)

max-niederman commented 4 months ago

Sorry, what's the behavior you're seeing exactly? Would you mind sending your config file and a screenshot of how ttyper is rendering?

goyalyashpal commented 4 months ago

Hi! I don't have the windows 7 device at the moment. So, sharing the following from memory.

The config file was not changed at all. i just installed from scoop install ttyper, and the ttyper never rendered. it straight up errored out right at launch and said something like "can't render underlines on win32api".

i think i tried to disable underline in config thereafter, but couldn't successfully figure out.


On my win 10 pc, it is working normally as expected. screenshot attached below (notice the underline at current cursor position, whereas the debug output says None everywhere for underline_color) there is still no config used. the ttyper --debug output is also attached

Details

```console $ # Press after launching and waiting for 2-5 seconds $ ttyper --debug ``` ```rust [src\main.rs:202:9] &opt = Opt { contents: None, debug: true, words: 50, config: None, language_file: None, language: None, list_languages: false, no_backtrack: false, sudden_death: false, } [src\main.rs:207:9] &config = Config { default_language: "english200", theme: Theme { default: Style { fg: None, bg: None, underline_color: None, add_modifier: NONE, sub_modifier: NONE, }, title: Style { fg: Some( White, ), bg: None, underline_color: None, add_modifier: BOLD, sub_modifier: NONE, }, input_border: Style { fg: Some( Cyan, ), bg: None, underline_color: None, add_modifier: NONE, sub_modifier: NONE, }, prompt_border: Style { fg: Some( Green, ), bg: None, underline_color: None, add_modifier: NONE, sub_modifier: NONE, }, prompt_correct: Style { fg: Some( Green, ), bg: None, underline_color: None, add_modifier: NONE, sub_modifier: NONE, }, prompt_incorrect: Style { fg: Some( Red, ), bg: None, underline_color: None, add_modifier: NONE, sub_modifier: NONE, }, prompt_untyped: Style { fg: Some( Gray, ), bg: None, underline_color: None, add_modifier: NONE, sub_modifier: NONE, }, prompt_current_correct: Style { fg: Some( Green, ), bg: None, underline_color: None, add_modifier: BOLD, sub_modifier: NONE, }, prompt_current_incorrect: Style { fg: Some( Red, ), bg: None, underline_color: None, add_modifier: BOLD, sub_modifier: NONE, }, prompt_current_untyped: Style { fg: Some( Blue, ), bg: None, underline_color: None, add_modifier: BOLD, sub_modifier: NONE, }, prompt_cursor: Style { fg: None, bg: None, underline_color: None, add_modifier: UNDERLINED, sub_modifier: NONE, }, results_overview: Style { fg: Some( Cyan, ), bg: None, underline_color: None, add_modifier: BOLD, sub_modifier: NONE, }, results_overview_border: Style { fg: Some( Cyan, ), bg: None, underline_color: None, add_modifier: NONE, sub_modifier: NONE, }, results_worst_keys: Style { fg: Some( Cyan, ), bg: None, underline_color: None, add_modifier: BOLD, sub_modifier: NONE, }, results_worst_keys_border: Style { fg: Some( Cyan, ), bg: None, underline_color: None, add_modifier: NONE, sub_modifier: NONE, }, results_chart: Style { fg: Some( Cyan, ), bg: None, underline_color: None, add_modifier: NONE, sub_modifier: NONE, }, results_chart_x: Style { fg: Some( Cyan, ), bg: None, underline_color: None, add_modifier: NONE, sub_modifier: NONE, }, results_chart_y: Style { fg: Some( Gray, ), bg: None, underline_color: None, add_modifier: BOLD, sub_modifier: NONE, }, results_restart_prompt: Style { fg: Some( Gray, ), bg: None, underline_color: None, add_modifier: ITALIC, sub_modifier: NONE, }, }, } ```