         # File lib/em/protocols/linetext2.rb, line 115
    115:       def set_text_mode size=nil
    116:         if size == 0
    117:           set_line_mode
    118:         else
    119:           @lt2_mode = :text
    120:           (@lt2_textbuffer ||= []).clear
    121:           @lt2_textsize = size # which can be nil, signifying no limit
    122:           @lt2_textpos = 0
    123:         end
    124:       end