Skip to content

Commit

Permalink
helper: sync color
Browse files Browse the repository at this point in the history
  • Loading branch information
Pixailz committed Nov 17, 2023
1 parent 3bb639e commit a9e3d1c
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions mk/utils.mk
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ GOTO_COL = $(call P_ANSI,$(1)G)

# ANSI
ESC := \x1b[

## COLOR
RST := $(ESC)0m
R := $(ESC)31m
Expand All @@ -38,13 +39,16 @@ B := $(ESC)34m
M := $(ESC)35m
C := $(ESC)36m
D := $(ESC)39m
O := $(ESC)38;5;214m
O := $(ESC)38;5;208m

## MODIFIER
BOL := $(ESC)1m

### COMPOSITE
I := $(B)i$(RST)
W := $(O)$(RST)
P := $(G)$(RST)
F := $(R)$(RST)
I := $(BOL)$(C)*$(RST)
W := $(BOL)$(O)!$(RST)
P := $(BOL)$(G)+$(RST)
F := $(BOL)$(R)-$(RST)
ASCII_COLOR := $(G)

## CURSOR
Expand Down

0 comments on commit a9e3d1c

Please sign in to comment.