@@ -136,9 +136,6 @@ def _write_byte(self, data, delay=0.5):
136
136
def decode (self , value ):
137
137
raise Exception ('Not supported yet' )
138
138
139
- def fast_print (self , text ):
140
- raise Exception ('Not supported yet' )
141
-
142
139
143
140
# to get exception-safe behavior, make sure __exit__ is always called (by using with-statements)
144
141
class CharacterBasedErikaMock (AbstractErikaMock ):
@@ -223,6 +220,12 @@ def print_ascii(self, text):
223
220
sleep (self .delay_after_each_step )
224
221
self .stdscr .refresh ()
225
222
223
+ def fast_print (self , text ):
224
+ """just emulates fast printing (doing line splitting + then normal printing)"""
225
+ for split in text .splitlines ():
226
+ self .print_ascii (split )
227
+ self .crlf ()
228
+
226
229
def delete_ascii (self , reversed_text ):
227
230
text_length = len (reversed_text )
228
231
if text_length == 0 :
@@ -340,5 +343,8 @@ def crlf(self):
340
343
def print_ascii (self , text ):
341
344
raise Exception ('Characters and character steps are not supported in microstep-based tests' )
342
345
346
+ def fast_print (self , text ):
347
+ raise Exception ('Characters and character steps are not supported in microstep-based tests' )
348
+
343
349
def delete_ascii (self , text ):
344
350
raise Exception ('Characters and character steps are not supported in microstep-based tests' )
0 commit comments