using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TELTest { public struct ReadConfiguration { public bool Echo { get; set; } public bool EchoPasswordChars { get; set; } public char PasswordChar { get; set; } public bool FlushAfterReading { get; set; } public string Whitelist { get; set; } public char Terminator { get; set; } public int MaxLength { get; set; } public static ReadConfiguration Default { get { ReadConfiguration rc = new ReadConfiguration(); rc.Echo = true; rc.EchoPasswordChars = false; rc.PasswordChar = '*'; rc.FlushAfterReading = true; rc.Whitelist = null; rc.MaxLength = int.MaxValue; rc.Terminator = '\r'; return rc; } } } }