Problem with Keys

Topics: Developing Cosmos (Working on Cosmos source code directly), Other, Using Cosmos (Developing your own OS, projects, etc)
Jul 4, 2012 at 9:08 PM

Hey, I've this code

 Cosmos.Hardware.Keyboard KB = new Cosmos.Hardware.Keyboard();
            ConsoleKey inp = KB.ReadKey();
            if (inp == ConsoleKey.DownArrow)
            {
                Console.ForegroundColor = ConsoleColor.Green;
                Console.WriteLine("Down Arr pressed.");
            }
            else if (inp == ConsoleKey.Escape)
            {
                Console.ForegroundColor = ConsoleColor.Green;
                Console.WriteLine("Escape  pressed.");

               So this sentence with blue color is not working-help in this-

                Console.ReadLine();

             }
            else
            {
                Console.WriteLine("Non");
            }

and after pressing the "Escape" key or any key I can't use the Console.ReadLine() the system does not respond.

Coordinator
Jul 4, 2012 at 10:43 PM
On 7/4/2012 5:09 PM, ahmed01000410657 wrote:
> *Console.ReadLine();*

ReadLine currently only has a high level hacked plug. Its not been
vetted well and surely needs some work.
Coordinator
Jul 5, 2012 at 6:56 AM
Does using Console.ReadKey work? if so, does that change something about the ReadLine behavior?



On Thu, Jul 5, 2012 at 12:43 AM, kudzu <notifications@codeplex.com> wrote:

From: kudzu

On 7/4/2012 5:09 PM, ahmed01000410657 wrote:
> *Console.ReadLine();*

ReadLine currently only has a high level hacked plug. Its not been
vetted well and surely needs some work.

Read the full discussion online.

To add a post to this discussion, reply to this email (Cosmos@discussions.codeplex.com)

To start a new discussion for this project, email Cosmos@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Jul 5, 2012 at 1:52 PM

Console.ReadKey is not working..