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