/// Reset the current state. private void Reset() { buf.Reset(); pos = 0; cell = new Cell(); endChar = 0; lines = lines.Slice(0, 0); widths = widths.Slice(0, 0); AddLine(); }