Skip to content

Broken support of Windows Powershell #79

Closed
@HexPandaa

Description

@HexPandaa

Hello and thank you for your great module!

I'm encountering a strange problem when using the module in a native Windows Powershell window.

Here's the sample code I'm using:

import argparse
from rich_argparse import RichHelpFormatter
from rich import print as rprint

def main():
    rprint("[italic blue]It's working[/]")

if __name__ == "__main__":
    parser = argparse.ArgumentParser(formatter_class=RichHelpFormatter)
    parser.parse_args()
    main()

Here's the output in a native Windows Powershell window, the output from rich_argparse is broken, however the output from rich is ok.
ps

The output from Windows Terminal shows that both rich_argparse and rich work.
wt

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions