mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2026-08-24 02:34:19 -05:00
docs: clarify cursor color comment in writer.go
Co-authored-by: JanDeDobbeleer <2492783+JanDeDobbeleer@users.noreply.github.com>
This commit is contained in:
co-authored by
JanDeDobbeleer
parent
cdc85883fc
commit
459649b40d
@@ -187,8 +187,8 @@ func CursorColor(colorStr string) string {
|
||||
return ""
|
||||
}
|
||||
|
||||
// Convert hex color to the format terminals expect
|
||||
// OSC 12 accepts hex colors directly (e.g., #FF00FF)
|
||||
// OSC 12 escape sequence to set cursor color
|
||||
// resolvedColor is in ANSI format (e.g., 38;2;255;0;255)
|
||||
return fmt.Sprintf(formats.Osc12, string(resolvedColor))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user