public override void Write(string str) { base.Write(str); if (Entries.Count == cursor) { Entries.Add(str); } else { Entries[cursor] = Entries[cursor] + str; } log.Add(str); }
public override string ReadLine() { string s = base.ReadLine(); log.Add(s); tw.WriteLine(); return(s); }