Skip to content

format texti input as '\e]4;1;%s\a\e[0;41m \e[m' "$1" to show color text directly  #1021

Open
@wellcomez

Description

I find bash can use e]xxx ..... e[m to define text color directly. This way is more flexisible than using ui style.
add api:

func colortext(s txt,color tcell.color)string{
colorbeign:= getcolorbegin(color)
colorend:=getclororend(color)
return fmt.sprintf("%s %s %s ",colorbegin, txt,colorend)
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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