yield by char
This commit is contained in:
@@ -249,6 +249,10 @@ class TextReleaser:
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
if state.in_delay_mode:
|
if state.in_delay_mode:
|
||||||
|
# Yield character by character with delay
|
||||||
|
for char in text_to_yield:
|
||||||
|
yield char
|
||||||
time.sleep(self.WAIT_TIME)
|
time.sleep(self.WAIT_TIME)
|
||||||
|
else:
|
||||||
|
# Yield entire chunk immediately
|
||||||
yield text_to_yield
|
yield text_to_yield
|
||||||
|
|||||||
Reference in New Issue
Block a user