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. General Programming
  3. C#
  4. colored lines in console??

colored lines in console??

Scheduled Pinned Locked Moved C#
csharpquestion
3 Posts 3 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.
  • O Offline
    O Offline
    oOomen
    wrote on last edited by
    #1

    hi, im new in c# is it posible to print colored lines or move cursor in console?? thanks!!

    H 1 Reply Last reply
    0
    • O oOomen

      hi, im new in c# is it posible to print colored lines or move cursor in console?? thanks!!

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      Not using the base class library (the .NET Framework assemblies), not until .NET 2.0 that is. There are ways to accomplish this by P/Invoking the write native APIs. See the article Console Enhancements[^] here on CodeProject for details.

      Microsoft MVP, Visual C# My Articles

      U 1 Reply Last reply
      0
      • H Heath Stewart

        Not using the base class library (the .NET Framework assemblies), not until .NET 2.0 that is. There are ways to accomplish this by P/Invoking the write native APIs. See the article Console Enhancements[^] here on CodeProject for details.

        Microsoft MVP, Visual C# My Articles

        U Offline
        U Offline
        Uwe Keim
        wrote on last edited by
        #3

        For my projects I use LOG4NET [^] (fantastic lib!), which has a ColoredConsoleAppender (or with a similar name) which allows for colors on the console. They should have source code included, maybe they use another method than your proposed one... -- - Free Windows-based CMS: www.zeta-software.de/enu/producer/freeware/download.html - See me: www.magerquark.de - MSN Messenger: uwe_keim@hotmail.com

        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