Skip to content

Commit

Permalink
refactor(colors): deduplicate common color codes
Browse files Browse the repository at this point in the history
  • Loading branch information
ErrorNoInternet committed Aug 23, 2024
1 parent e83a676 commit b2bd056
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 40 deletions.
20 changes: 20 additions & 0 deletions colors/common.S
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
red:
.ascii "\x1b[31m"

green:
.ascii "\x1b[32m"

yellow:
.ascii "\x1b[33m"

blue:
.ascii "\x1b[34m"

purple:
.ascii "\x1b[35m"

cyan:
.ascii "\x1b[36m"

reset:
.ascii "\x1b[m\xf"
21 changes: 1 addition & 20 deletions colors/default.S
Original file line number Diff line number Diff line change
@@ -1,23 +1,4 @@
red:
.ascii "\x1b[31m"

green:
.ascii "\x1b[32m"

yellow:
.ascii "\x1b[33m"

blue:
.ascii "\x1b[34m"

purple:
.ascii "\x1b[35m"

cyan:
.ascii "\x1b[36m"

reset:
.ascii "\x1b[m\xf"
.include "colors/common.S"

accent0:
.ascii "\x1b[36m"
Expand Down
21 changes: 1 addition & 20 deletions colors/gentoo.S
Original file line number Diff line number Diff line change
@@ -1,23 +1,4 @@
red:
.ascii "\x1b[31m"

green:
.ascii "\x1b[32m"

yellow:
.ascii "\x1b[33m"

blue:
.ascii "\x1b[34m"

purple:
.ascii "\x1b[35m"

cyan:
.ascii "\x1b[36m"

reset:
.ascii "\x1b[m\xf"
.include "colors/common.S"

accent0:
.ascii "\x1b[35m"
Expand Down

0 comments on commit b2bd056

Please sign in to comment.