Skip to content

Commit

Permalink
Add space to the end of the speech buffer
Browse files Browse the repository at this point in the history
If we receive 3\b\n, the 3 would previously be overwritten by the backspace.
  • Loading branch information
tspivey committed Dec 3, 2020
1 parent 4fff435 commit 4e04b2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tdsr
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import struct
import termios
import codecs
import pyte
from io import StringIO
from io import StringIO, SEEK_END
import subprocess
import time
import configparser
Expand Down Expand Up @@ -506,6 +506,7 @@ class MyScreen(pyte.Screen):
if state.config.getboolean('speech', 'line_pause'):
sb()
else:
speech_buffer.seek(0, SEEK_END)
speech_buffer.write(' ')
super(MyScreen, self).linefeed()

Expand Down

0 comments on commit 4e04b2f

Please sign in to comment.