Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

311
Views
¿Puedes copiar texto en color desde la consola C#?

Hice un pequeño programa que hace que tu texto de entrada sea colorido. Un color diferente del arcoíris para cada personaje.

aquí está el código:

 foreach (char letter in char_array) { switch (random_int) { case 1: Console.ForegroundColor = ConsoleColor.Red; break; case 2: Console.ForegroundColor = ConsoleColor.DarkYellow; break; case 3: Console.ForegroundColor = ConsoleColor.Green; break; case 4: Console.ForegroundColor = ConsoleColor.Blue; break; case 5: Console.ForegroundColor = ConsoleColor.DarkBlue; break; case 6: Console.ForegroundColor = ConsoleColor.Magenta; break; } Console.Write(letter); Thread.Sleep(20); random_int = random.Next(1,7); }

y funciona bastante bien. Me preguntaba si puedo copiar el texto colorido y pegarlo tal como está, con los colores.

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!