Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrectly showing underlines in Conemu on Windows 7 #121

Open
goyalyashpal opened this issue Apr 20, 2024 · 2 comments
Open

Incorrectly showing underlines in Conemu on Windows 7 #121

goyalyashpal opened this issue Apr 20, 2024 · 2 comments

Comments

@goyalyashpal
Copy link

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
Copy link
Owner

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

@max-niederman max-niederman changed the title how to remove formatting? Incorrectly showing underlines in Conemu on Windows 7 Apr 22, 2024
@goyalyashpal
Copy link
Author

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

$ # Press <Ctrl-c> after launching and waiting for 2-5 seconds
$ ttyper --debug
[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,
        },
    },
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants