|
35 | 35 |
|
36 | 36 | #TODO figure out how config.list_win_visible behaves and implement it, or stop using it |
37 | 37 | #TODO other autocomplete modes (also fix in other bpython implementations) |
38 | | -#TODO add buffering to stdout to speed up output. |
39 | 38 |
|
40 | 39 | from bpython.keys import cli_key_dispatch as key_dispatch |
41 | 40 |
|
@@ -311,9 +310,6 @@ def process_event(self, e): |
311 | 310 | elif e in ("\n", "\r", "PAD_ENTER"): |
312 | 311 | self.on_enter() |
313 | 312 | self.update_completion() |
314 | | - elif e in ["\x00", "\x11"]: |
315 | | - pass #dunno what these are, but they screw things up #TODO find out |
316 | | - #TODO use a whitelist instead of a blacklist! |
317 | 313 | elif e == '\t': # tab |
318 | 314 | self.on_tab() |
319 | 315 | elif e in ("KEY_BTAB",): # shift-tab |
@@ -435,12 +431,9 @@ def add_normal_character(self, char): |
435 | 431 | if self.config.cli_trim_prompts and self._current_line.startswith(">>> "): |
436 | 432 | self._current_line = self._current_line[4:] |
437 | 433 | self.cursor_offset_in_line = max(0, self.cursor_offset_in_line - 4) |
438 | | - #TODO deal with characters that take up more than one space? do we care? |
439 | 434 |
|
440 | 435 | def update_completion(self, tab=False): |
441 | 436 | """Update autocomplete info; self.matches and self.argspec""" |
442 | | - #TODO do we really have to do something this ugly? Can we rename it? |
443 | | - # this method stolen from bpython.cli |
444 | 437 |
|
445 | 438 | if self.list_win_visible and not self.config.auto_display_list: |
446 | 439 | self.list_win_visible = False |
@@ -520,7 +513,6 @@ def run_code_and_maybe_finish(self, for_code=None): |
520 | 513 |
|
521 | 514 | def keyboard_interrupt(self): |
522 | 515 | #TODO factor out the common cleanup from running a line |
523 | | - #TODO make rewind work properly with ctrl-c'd infinite loops |
524 | 516 | self.cursor_offset_in_line = -1 |
525 | 517 | self.unhighlight_paren() |
526 | 518 | self.display_lines.extend(self.display_buffer_lines) |
|
0 commit comments