console.readkey Questions

4

Solved

I am trying to convert a user input key to an int, the user will be entering a number between 1 and 6. This is what i have so far sitting inside a method, its not working, yet throwing a format exc...
Diplomacy asked 10/3, 2015 at 2:11

2

I'm Going to start a console application. The problem is how to determine that the CTRL key is pressed alone without any other key. using System; using System.Text; public class ConsoleKeyExample ...
Kalb asked 3/11, 2015 at 1:52

3

Solved

I don't understand what I am missing here, but it seems that Console.ReadKey() is still active and is causing the Console to make me enter twice when using Console.ReadLine() after invoking Console...
Microelement asked 20/2, 2017 at 19:41

4

Solved

I'm using Term::ReadKey in ReadMode('cbreak') to read a single character and perform an action based on the input. This works fine for all other keys except the arrow keys. When the arrow keys are ...
Preshrunk asked 9/9, 2015 at 22:10

3

Solved

How can I read a single character/key from the console without having to hit Enter? There is an old entry in Sun's bug database claiming that it can't be done in pure java. I've found these approac...
Caryophyllaceous asked 11/7, 2010 at 23:24

3

Solved

I am trying to run my code until Esc was pressed. Therefore I am using ReadKey in my Console var input = Console.ReadKey(); do { } while (input.Key != ConsoleKey.Escape); but at "ConsoleKey" it...
Told asked 30/12, 2013 at 19:16

2

Solved

I am new to Java ... is there a similar method to the ReadKey() in C# to avoid that a console application closes? thanks
Champ asked 28/3, 2010 at 18:23
1

© 2022 - 2024 — McMap. All rights reserved.