Cmd에서 모든 숫자를 강조 표시하십시오.

Cmd에서 모든 숫자를 강조 표시하십시오.

cmd에서 숫자를 어떻게 강조할 수 있나요? 즉, 이전 명령을 입력할 때 숫자를 자동으로 강조 표시하고 싶습니다.

어떻게 이를 달성할 수 있나요?
숫자를 읽을 수 있도록 cmd의 다른 명령과 구별하고 싶습니다.

답변1

내가 아는 한, CMD는 지정된 고정 전경색과 배경색만 지원하며 COLOR 명령을 사용하여 변경할 수 있습니다.

Sets the default console foreground and background colors.

COLOR [attr]

  attr        Specifies color attribute of console output

Color attributes are specified by TWO hex digits -- the first
corresponds to the background; the second the foreground.  Each digit
can be any of the following values:

    0 = Black       8 = Gray
    1 = Blue        9 = Light Blue
    2 = Green       A = Light Green
    3 = Aqua        B = Light Aqua
    4 = Red         C = Light Red
    5 = Purple      D = Light Purple
    6 = Yellow      E = Light Yellow
    7 = White       F = Bright White

If no argument is given, this command restores the color to what it was
when CMD.EXE started.  This value either comes from the current console
window, the /T command line switch or from the DefaultColor registry
value.

The COLOR command sets ERRORLEVEL to 1 if an attempt is made to execute
the COLOR command with a foreground and background color that are the
same.

Example: "COLOR fc" produces light red on bright white

문자마다 다른 색상을 지정할 수 없습니다.

관련 정보