Skip to content

feature request: any appetite for supporting dynamic text? #167

Open
@davidxia

Description

@davidxia

Description

I'd like the text to be dynamic, e.g. an updating timestamp or time since something happened.
I have a prototype here where users can make text a function instead of a static string.

with Halo(text=lambda: f'date {datetime.datetime.now()}'):
    time.sleep(100)

Any appetite for supporting this? If so, any feedback on my PR would be great. I still have to add tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions