Skip to content

Non consuming escapes #23

@blaggacao

Description

@blaggacao

For manipulating prompts, it is necessary to mark characters as non-greedy (not consuming a space in the column calculation of the tty).

Here is an example how this is done for bash and zsh. Maybe this is in scope for the ultimate color library?

https://github.com/jonmosco/kube-ps1/blob/master/kube-ps1.sh#L57-L73

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