''

def on_done(self, text):

    ending_text = u''
    line_ending = stino.arduino_info[u'selected'].get(u'line_ending')
    if (line_ending == u'NL'):
        ending_text = u'\n'
    elif (line_ending == u'CR'):
        ending_text = u'\r'
    elif (line_ending == u'NL_CR'):
        ending_text = u'\r\n'
    text += ending_text
    view = self.win.active_view()
    view_name = view.name()
    if view_name.endswith(u'-    Serial    Monitor'):
        serial_port = view_name.split(u'-')[0].strip()
        if (serial_port in stino.arduino_info[u'serial_monitors']):
            monitor = stino.arduino_info[u'serial_monitors'].get(self.port)
            monitor.send(text)
            caption = (u'Send    to    %s:    ' % serial_port)
            self.win.show_input_panel(caption, u'', self.on_done, None, None)
