[Mono-list] Console Read

vh-bil bill.payne at mpshouse.com
Mon May 28 05:33:35 UTC 2012


I am having trouble with Console.Read and ReadLine etc. where the keys
pressed are being output to the console without the program writing it. Is
there an option to say the keys have been handled so they are not written to
the console while typed?

Example:
using System;

namespace test
{
	class MainClass
	{
		public static void Main (string[] args)
		{
			string s = Console.ReadLine();
			Console.WriteLine (s + " was the text");
		}
	}
}

is outputting: (as you can see TEST is written to the console while typed)

TEST
TEST was the text

Press any key to continue...

--
View this message in context: http://mono.1490590.n4.nabble.com/Console-Read-tp4649573.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list