Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. DOS Color Codes

DOS Color Codes

Scheduled Pinned Locked Moved The Lounge
csharpquestion
21 Posts 11 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Jason Hooper

    All right.. let's hear it. Who remember's the whole sequence: 1 - Blue 2 - Green 3 - Cyan 4 - ???

    Jason

    OriginalGriffO Offline
    OriginalGriffO Offline
    OriginalGriff
    wrote on last edited by
    #8

    Mr Google does - he lead me here: http://www.online-it-support.co.uk/?p=797[^]

    Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

    "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
    "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

    1 Reply Last reply
    0
    • realJSOPR realJSOP

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

      I'm old. I know stuff.

      ".45 ACP - because shooting twice is just silly" - JSOP, 2010
      -----
      You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
      -----
      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

      S Offline
      S Offline
      Slacker007
      wrote on last edited by
      #9

      taupe?

      Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
      "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011) "It is the celestial scrotum of good luck!" - Nagy Vilmos (2011)

      1 Reply Last reply
      0
      • X Xiangyang Liu

        you can find out with dos command: "color x", where x = 1, 2, 3, ..., a, b, c, d, e, f

        My Younger Son & His "PET"

        X Offline
        X Offline
        Xiangyang Liu
        wrote on last edited by
        #10

        C:\>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

        My Younger Son & His "PET"

        1 Reply Last reply
        0
        • realJSOPR realJSOP

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

          I'm old. I know stuff.

          ".45 ACP - because shooting twice is just silly" - JSOP, 2010
          -----
          You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
          -----
          "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #11

          Ok. I probably was thinking more of the garish CGA colors

          And from the clouds a mighty voice spoke:
          "Smile and be happy, for it could come worse!"

          And I smiled and was happy
          And it came worse.

          OriginalGriffO 1 Reply Last reply
          0
          • X Xiangyang Liu

            you can find out with dos command: "color x", where x = 1, 2, 3, ..., a, b, c, d, e, f

            My Younger Son & His "PET"

            J Offline
            J Offline
            Jason Hooper
            wrote on last edited by
            #12

            If only google indexed the internet, I would not have had to ask. Not my fault.

            Jason

            1 Reply Last reply
            0
            • realJSOPR realJSOP

              He wasn't asking how to find it (and the answer is, of course, google), he was testing our memory.

              ".45 ACP - because shooting twice is just silly" - JSOP, 2010
              -----
              You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
              -----
              "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

              X Offline
              X Offline
              Xiangyang Liu
              wrote on last edited by
              #13

              You are right, I misunderstood his post. I am amazed at how much we can do with DOS commands, if only we learn/remember how to do it.

              My Younger Son & His "PET"

              1 Reply Last reply
              0
              • realJSOPR realJSOP

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

                I'm old. I know stuff.

                ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                -----
                You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                -----
                "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                E Offline
                E Offline
                Espen Harlinn
                wrote on last edited by
                #14

                John Simmons / outlaw programmer wrote:

                I know stuff

                That's an unfair advantage - knowledge is not supposed to mean anything, it usually ruins good discussions - and as it has not been endorsed by w3c, it can't be worth sh*t. ;)

                Espen Harlinn Senior Architect, Software - Goodtech Projects & Services

                1 Reply Last reply
                0
                • realJSOPR realJSOP

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

                  I'm old. I know stuff.

                  ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                  -----
                  You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                  -----
                  "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                  G Offline
                  G Offline
                  GenJerDan
                  wrote on last edited by
                  #15

                  10% = Silver 5% = Gold

                  So I rounded up my camel Just to ask him for a smoke He handed me a Lucky, I said "Hey, you missed the joke." My Mu[sic] My Films My Windows Programs, etc.

                  D 1 Reply Last reply
                  0
                  • L Lost User

                    Ok. I probably was thinking more of the garish CGA colors

                    And from the clouds a mighty voice spoke:
                    "Smile and be happy, for it could come worse!"

                    And I smiled and was happy
                    And it came worse.

                    OriginalGriffO Offline
                    OriginalGriffO Offline
                    OriginalGriff
                    wrote on last edited by
                    #16

                    Garish - but not necessarily usable: Doom in CGA[^] (YouTube, SFW)

                    Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

                    "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                    "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                    1 Reply Last reply
                    0
                    • realJSOPR realJSOP

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

                      I'm old. I know stuff.

                      ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                      -----
                      You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                      -----
                      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                      N Offline
                      N Offline
                      Nish Nishant
                      wrote on last edited by
                      #17

                      My first machines were all green monochrome, so these colors were all shades of green. When I first ran one of my apps on a color monitor I was amazed!

                      Regards, Nish


                      My technology blog: voidnish.wordpress.com You've gotta read this : Using lambdas - C++ vs. C# vs. C++/CX vs. C++/CLI

                      1 Reply Last reply
                      0
                      • J Jason Hooper

                        All right.. let's hear it. Who remember's the whole sequence: 1 - Blue 2 - Green 3 - Cyan 4 - ???

                        Jason

                        L Offline
                        L Offline
                        Luc Pattyn
                        wrote on last edited by
                        #18

                        You can see the 16 colors all at once, in their normal order on all kinds of Windows machines, young or old: use CommandPrompt/Properties/Colors :)

                        Luc Pattyn [My Articles] Nil Volentibus Arduum

                        J 1 Reply Last reply
                        0
                        • L Luc Pattyn

                          You can see the 16 colors all at once, in their normal order on all kinds of Windows machines, young or old: use CommandPrompt/Properties/Colors :)

                          Luc Pattyn [My Articles] Nil Volentibus Arduum

                          J Offline
                          J Offline
                          Jason Hooper
                          wrote on last edited by
                          #19

                          Nice one, didn't think of that :-D

                          Jason

                          1 Reply Last reply
                          0
                          • G GenJerDan

                            10% = Silver 5% = Gold

                            So I rounded up my camel Just to ask him for a smoke He handed me a Lucky, I said "Hey, you missed the joke." My Mu[sic] My Films My Windows Programs, etc.

                            D Offline
                            D Offline
                            djdanlib 0
                            wrote on last edited by
                            #20

                            Resistance is futile (if < 1 ohm)

                            G 1 Reply Last reply
                            0
                            • D djdanlib 0

                              Resistance is futile (if < 1 ohm)

                              G Offline
                              G Offline
                              GenJerDan
                              wrote on last edited by
                              #21

                              I reluctantly agree.

                              So I rounded up my camel Just to ask him for a smoke He handed me a Lucky, I said "Hey, you missed the joke." My Mu[sic] My Films My Windows Programs, etc.

                              1 Reply Last reply
                              0
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                              • Login

                              • Don't have an account? Register

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • World
                              • Users
                              • Groups