'Input is ready!'

def doRead(self):

    curses.noecho()
    c = self.stdscr.getch()
    if (c == curses.KEY_BACKSPACE):
        self.searchText = self.searchText[:(-1)]
    elif ((c == curses.KEY_ENTER) or (c == 10)):
        text = self.searchText
        self.searchText = ''
        self.print_line(('>>    %s' % text))
        try:
            if self.callback:
                self.callback.on_line(text)
        except Exception as e:
            self.print_line(str(e))
        self.stdscr.refresh()
    elif isprint(c):
        if (len(self.searchText) == (self.cols - 2)):
            return
        self.searchText = (self.searchText + chr(c))
    self.stdscr.addstr((self.rows - 1), 0, (self.searchText + ('    ' * ((self.cols - len(self.searchText)) - 2))))
    self.paintStatus((self.statusText + ('    %d' % len(self.searchText))))
    self.stdscr.move((self.rows - 1), len(self.searchText))
    self.stdscr.refresh()
