修饰符
¥Modifiers
修饰符的支持因不同的终端而异。如果不支持,则它们通常会被忽略。
¥Modifier support varies throughout different terminals. They will mostly be ignored, if not supported.
-
reset
- 将所有(颜色)修改器重置为其默认值¥
reset
- Resets all (color) modifiers to their defaults -
bold - 将文本设为粗体
¥bold - Make text bold
-
italic - 将文本设置为斜体
¥italic - Make text italic
-
underline - 给字面加下划线
¥underline - Make text underlined
-
strikethrough- 在文本中心放置一条水平线(别名:strikeThrough
、crossedout
、crossedOut
)¥
strikethrough- Puts a horizontal line through the center of the text (Alias:strikeThrough
,crossedout
,crossedOut
) -
hidden
- 打印文本,但使其不可见(别名:隐藏)¥
hidden
- Prints the text, but makes it invisible (Alias: conceal) -
dim - 颜色强度降低(别名:
faint
)¥dim - Decreased color intensity (Alias:
faint
) -
overlined - 使字面上划线
¥overlined - Make text overlined
-
blink - 以一定间隔隐藏和显示文本
¥blink - Hides and shows the text in an interval
-
inverse - 交换前景色和背景色(别名:
swapcolors
、swapColors
)¥inverse - Swap foreground and background colors (Alias:
swapcolors
,swapColors
) -
doubleunderline - 使文本加双下划线(别名:
doubleUnderline
)¥doubleunderline - Make text double underlined (Alias:
doubleUnderline
) -
framed - 在文本周围画一个框
¥framed - Draw a frame around the text