Get or set Cursor color in Windows Console.
Get or set Cursor color in Windows Console.
- Download exe file.
- Copy to
C:\Program_Files\Scripts
.- Add
C:\Program_Files\Scripts
toPATH
environment variable.
> ecolor [[+|-]<foreground color>] [[+|-]<background color>]
:: [] -> optional argument
:: <> -> argument value
:: get current cursor color as "<foreground color> <background color>"
> ecolor
:: set cursor foreground color to 1
> ecolor 1
:: set cursor foreground color to darkgray
> ecolor darkgray
:: set cursor color to default
> ecolor 7 0
:: set cursor color to foreground=14, background=5
> ecolor 14 5
:: set cursor color to foreground=yellow, background=darkcyan
> ecolor yellow darkcyan
:: update cursor foreground color to next color
> ecolor +1
:: update cursor background color to next color
> ecolor +0 +1