|
22 | 22 | import termios, select, os, struct, errno
|
23 | 23 | import signal, re, time, sys
|
24 | 24 | from fcntl import ioctl
|
25 |
| -from pyrepl import curses |
26 |
| -from pyrepl.fancy_termios import tcgetattr, tcsetattr |
27 |
| -from pyrepl.console import Console, Event |
28 |
| -from pyrepl import unix_eventqueue |
| 25 | +from . import curses |
| 26 | +from .fancy_termios import tcgetattr, tcsetattr |
| 27 | +from .console import Console, Event |
| 28 | +from .unix_eventqueue import EventQueue |
29 | 29 |
|
30 | 30 | class InvalidTerminal(RuntimeError):
|
31 | 31 | pass
|
@@ -98,6 +98,7 @@ def __init__(self, f_in=0, f_out=1, term=None, encoding=None):
|
98 | 98 | else:
|
99 | 99 | self.output_fd = f_out.fileno()
|
100 | 100 |
|
| 101 | + |
101 | 102 | self.pollob = poll()
|
102 | 103 | self.pollob.register(self.input_fd, POLLIN)
|
103 | 104 | curses.setupterm(term, self.output_fd)
|
@@ -161,7 +162,7 @@ def __init__(self, f_in=0, f_out=1, term=None, encoding=None):
|
161 | 162 |
|
162 | 163 | self.__move = self.__move_short
|
163 | 164 |
|
164 |
| - self.event_queue = unix_eventqueue.EventQueue(self.input_fd) |
| 165 | + self.event_queue = EventQueue(self.input_fd) |
165 | 166 | self.partial_char = b''
|
166 | 167 | self.cursor_visible = 1
|
167 | 168 |
|
|
0 commit comments