prints out the input line with input
(self, line)
| 212 | return line + 8 |
| 213 | |
| 214 | def renderFooter(self, line): |
| 215 | """ prints out the input line with input """ |
| 216 | println(line, "") |
| 217 | line += 1 |
| 218 | |
| 219 | println(line, white(" Input: ") + decode(self.input)) |
| 220 | |
| 221 | #clear old output |
| 222 | if line < self.lastLowestLine: |
| 223 | for i in range(line + 1, self.lastLowestLine + 1): |
| 224 | println(i, "") |
| 225 | |
| 226 | self.lastLowestLine = line |
| 227 | |
| 228 | #set cursor to position |
| 229 | print "\033[" + str(self.inputline) + ";0H" |
| 230 | |
| 231 | def onChar(self, char): |
| 232 | """ default no special handling for single chars """ |