#nop {Top} {TopSepBar} {MidSepBar} {Bot} {BotSepBar}; #list prompt-fields create { { {place}{BotSepBar} {label}{美化 / Ctrl+B 切换} {name}{beautify} {cooldown}{600} {visibility}{HideCool} } { {place}{BotSepBar} {label}{状态栏更新} {name}{disable} {visibility}{HideLabel} } }; #nop 配色主题,注意这里不要直接嵌入 SGR(ansi codes),否则计算宽度时会有问题。; #var prompt-theme { {Disable}{} {BusyColor}{<030>} {BattleColor}{<110>} {BattleBusyColor}{<500><110>} {TopSepBar}{<020>} {MidSepBar}{<020>} {BotSepBar}{<020>} {HotLabel}{<100>} {CoolLabel}{<100>} {Value}{<070>} }; #nop 自定义图标; #var prompt-icon { {DisableRefresh}{🚫} }; #var prompt-prompt {}; #nop 热键绑定; #list global-key-bindings create { {{key}{\cs} {action}{prompt.ToggleSwitch}} {{key}{\cb} {action}{beautify.ToggleSwitch}} {{key}{\cd} {action}{xtt.ToggleDebug}} {{key}{\ce} {action}{option.Toggle EchoCommand}} {{key}{\col} {action}{option.List}} };