support user_message bg color for modern Windows terminals

This commit is contained in:
iceweasel-oai
2025-11-06 11:24:09 -08:00
committed by David Wiesen
parent fdb9fa301e
commit e52f289bf0
3 changed files with 167 additions and 8 deletions
+39 -5
View File
@@ -1480,6 +1480,7 @@ dependencies = [
"strum_macros 0.27.2",
"supports-color",
"tempfile",
"terminal-colorsaurus",
"textwrap 0.16.2",
"tokio",
"tokio-stream",
@@ -1493,6 +1494,7 @@ dependencies = [
"unicode-width 0.2.1",
"url",
"vt100",
"windows-sys 0.52.0",
]
[[package]]
@@ -3748,14 +3750,14 @@ dependencies = [
[[package]]
name = "mio"
version = "1.0.4"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "78bed444cc8a2160f01cbcf811ef18cac863ad68ae8ca62092e8db51d51c761c"
checksum = "69d83b0086dc8ecf3ce9ae2874b2d1290252e2a30720bea58a5c6639b0092873"
dependencies = [
"libc",
"log",
"wasi 0.11.1+wasi-snapshot-preview1",
"windows-sys 0.59.0",
"windows-sys 0.61.1",
]
[[package]]
@@ -5750,9 +5752,9 @@ dependencies = [
[[package]]
name = "signal-hook-mio"
version = "0.2.4"
version = "0.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "34db1a06d485c9142248b7a054f034b349b212551f3dfd19c94d45a754a217cd"
checksum = "b75a19a7a740b25bc7944bdee6172368f988763b744e3d4dfe753f6b4ece40cc"
dependencies = [
"libc",
"mio",
@@ -6135,6 +6137,32 @@ dependencies = [
"winapi-util",
]
[[package]]
name = "terminal-colorsaurus"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8909f33134da34b43f69145e748790de650a6abd84faf1f82e773444dd293ec8"
dependencies = [
"cfg-if",
"libc",
"memchr",
"mio",
"terminal-trx",
"windows-sys 0.61.1",
"xterm-color",
]
[[package]]
name = "terminal-trx"
version = "0.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "662a3cd5ca570df622e848ef18b50c151e65c9835257465417242243b0bce783"
dependencies = [
"cfg-if",
"libc",
"windows-sys 0.61.1",
]
[[package]]
name = "terminal_size"
version = "0.4.2"
@@ -7657,6 +7685,12 @@ dependencies = [
"windows-sys 0.59.0",
]
[[package]]
name = "xterm-color"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4de5f056fb9dc8b7908754867544e26145767187aaac5a98495e88ad7cb8a80f"
[[package]]
name = "yansi"
version = "1.0.1"