Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
433 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
set | ||
width: 20; | ||
---- | ||
hello!··············🛇 | ||
|
||
subtest single_line | ||
|
||
set | ||
align: right | ||
---- | ||
··············hello!🛇 | ||
|
||
set | ||
align: center | ||
---- | ||
·······hello!·······🛇 | ||
|
||
set | ||
align: left | ||
---- | ||
hello!··············🛇 | ||
|
||
subtest end | ||
|
||
subtest multi_line | ||
|
||
text | ||
small | ||
|
||
long line | ||
---- | ||
ok | ||
|
||
set | ||
align: right | ||
---- | ||
···············small | ||
···················· | ||
···········long·line🛇 | ||
|
||
set | ||
align: center | ||
---- | ||
·······small········ | ||
···················· | ||
·····long·line······🛇 | ||
|
||
set | ||
align: left | ||
---- | ||
small··············· | ||
···················· | ||
long·line···········🛇 | ||
|
||
subtest end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
set | ||
width: 20; | ||
---- | ||
hello!··············🛇 | ||
|
||
# The remainder of this test is best viewed | ||
# with a text editor that renders ANSI sequences. | ||
|
||
set | ||
foreground: #f00 | ||
---- | ||
[38;2;255;0;0mhello![0m··············🛇 | ||
|
||
set | ||
background: #0f0 | ||
---- | ||
[38;2;255;0;0;48;2;0;255;0mhello![0m[48;2;0;255;0m··············[0m🛇 | ||
|
||
subtest fill_colors | ||
|
||
set | ||
width: 20; | ||
height: 3; | ||
background: unset; | ||
foreground: #f00; | ||
---- | ||
[38;2;255;0;0mhello![0m·············· | ||
···················· | ||
····················🛇 | ||
|
||
set | ||
foreground: unset; | ||
background: #f00; | ||
---- | ||
[48;2;255;0;0mhello![0m[48;2;255;0;0m··············[0m | ||
[48;2;255;0;0m····················[0m | ||
[48;2;255;0;0m····················[0m🛇 | ||
|
||
subtest end | ||
|
||
subtest border_colors | ||
|
||
set | ||
clear; | ||
width: 20; | ||
border-style: normal; | ||
border-foreground: #f00 | ||
---- | ||
[38;2;255;0;0m┌────────────────────┐[0m | ||
[38;2;255;0;0m│[0mhello!··············[38;2;255;0;0m│[0m | ||
[38;2;255;0;0m└────────────────────┘[0m🛇 | ||
|
||
set | ||
border-foreground: unset; | ||
border-top-foreground: #f00 | ||
---- | ||
[38;2;255;0;0m┌────────────────────┐[0m | ||
│hello!··············│ | ||
└────────────────────┘🛇 | ||
|
||
set | ||
border-foreground: unset; | ||
border-left-foreground: #f00 | ||
---- | ||
┌────────────────────┐ | ||
[38;2;255;0;0m│[0mhello!··············│ | ||
└────────────────────┘🛇 | ||
|
||
set | ||
border-foreground: unset; | ||
border-right-foreground: #f00 | ||
---- | ||
┌────────────────────┐ | ||
│hello!··············[38;2;255;0;0m│[0m | ||
└────────────────────┘🛇 | ||
|
||
set | ||
border-foreground: unset; | ||
border-bottom-foreground: #f00 | ||
---- | ||
┌────────────────────┐ | ||
│hello!··············│ | ||
[38;2;255;0;0m└────────────────────┘[0m🛇 | ||
|
||
set | ||
border-foreground: unset; | ||
border-background: #0f0 | ||
---- | ||
[48;2;0;255;0m┌────────────────────┐[0m | ||
[48;2;0;255;0m│[0mhello!··············[48;2;0;255;0m│[0m | ||
[48;2;0;255;0m└────────────────────┘[0m🛇 | ||
|
||
set | ||
border-background: unset; | ||
border-top-background: #0f0 | ||
---- | ||
[48;2;0;255;0m┌────────────────────┐[0m | ||
│hello!··············│ | ||
└────────────────────┘🛇 | ||
|
||
set | ||
border-background: unset; | ||
border-left-background: #0f0 | ||
---- | ||
┌────────────────────┐ | ||
[48;2;0;255;0m│[0mhello!··············│ | ||
└────────────────────┘🛇 | ||
|
||
set | ||
border-background: unset; | ||
border-right-background: #0f0 | ||
---- | ||
┌────────────────────┐ | ||
│hello!··············[48;2;0;255;0m│[0m | ||
└────────────────────┘🛇 | ||
|
||
set | ||
border-background: unset; | ||
border-bottom-background: #0f0 | ||
---- | ||
┌────────────────────┐ | ||
│hello!··············│ | ||
[48;2;0;255;0m└────────────────────┘[0m🛇 | ||
|
||
|
||
subtest end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
# Use a text with a space, to show space styling. | ||
text | ||
hello world! | ||
---- | ||
ok | ||
|
||
set | ||
clear; width: 20; | ||
underline: true | ||
---- | ||
[4;4mh[0m[4;4me[0m[4;4ml[0m[4;4ml[0m[4;4mo[0m[4m·[0m[4m·[0m[4m·[0m[4m·[0m[4;4mw[0m[4;4mo[0m[4;4mr[0m[4;4ml[0m[4;4md[0m[4;4m![0m·····🛇 | ||
|
||
# Seemingly no difference! | ||
# See issue: https://github.com/charmbracelet/lipgloss/issues/113 | ||
set | ||
clear; width: 20; | ||
underline: true; underline-spaces: true | ||
---- | ||
[4;4mh[0m[4;4me[0m[4;4ml[0m[4;4ml[0m[4;4mo[0m[4m·[0m[4m·[0m[4m·[0m[4m·[0m[4;4mw[0m[4;4mo[0m[4;4mr[0m[4;4ml[0m[4;4md[0m[4;4m![0m·····🛇 | ||
|
||
# Weird output. | ||
# See issue: https://github.com/charmbracelet/lipgloss/issues/113 | ||
set | ||
clear; width: 20; | ||
underline: true; underline-spaces: false | ||
---- | ||
[4;4mhello····world![0m·····🛇 | ||
|
||
# If underline is not set, underline-spaces does nothing. | ||
set | ||
clear; width: 20; | ||
underline-spaces: true | ||
---- | ||
hello····world!·····🛇 | ||
|
||
set | ||
clear; width: 20; | ||
italic: true | ||
---- | ||
[3mhello····world![0m·····🛇 | ||
|
||
|
||
set | ||
clear; width: 20; | ||
bold: true | ||
---- | ||
[1mhello····world![0m·····🛇 | ||
|
||
|
||
set | ||
clear; width: 20; | ||
strikethrough: true | ||
---- | ||
[9mh[0m[9me[0m[9ml[0m[9ml[0m[9mo[0m[9m·[0m[9m·[0m[9m·[0m[9m·[0m[9mw[0m[9mo[0m[9mr[0m[9ml[0m[9md[0m[9m![0m·····🛇 | ||
|
||
# Seemingly no difference! | ||
# See issue: https://github.com/charmbracelet/lipgloss/issues/113 | ||
set | ||
clear; width: 20; | ||
strikethrough: true; strikethrough-spaces: true | ||
---- | ||
[9mh[0m[9me[0m[9ml[0m[9ml[0m[9mo[0m[9m·[0m[9m·[0m[9m·[0m[9m·[0m[9mw[0m[9mo[0m[9mr[0m[9ml[0m[9md[0m[9m![0m·····🛇 | ||
|
||
# Weird output. | ||
# See issue: https://github.com/charmbracelet/lipgloss/issues/113 | ||
set | ||
clear; width: 20; | ||
strikethrough: true; strikethrough-spaces: false | ||
---- | ||
[9mhello····world![0m·····🛇 | ||
|
||
# If strikethrough is not set, strikethrough-spaces does nothing. | ||
set | ||
clear; width: 20; | ||
strikethrough-spaces: true | ||
---- | ||
hello····world!·····🛇 | ||
|
||
set | ||
clear; width: 20; | ||
reverse: true | ||
---- | ||
[7mhello····world![0m[7m·····[0m🛇 | ||
|
||
|
||
set | ||
clear; width: 20; | ||
blink: true | ||
---- | ||
[5mhello····world![0m·····🛇 | ||
|
||
set | ||
clear; width: 20; | ||
faint: true | ||
---- | ||
[2mhello····world![0m·····🛇 |
Oops, something went wrong.