initial improvements to pty driver. Improved clipboard handling of multibyte characters. Added emoji menu to vmenu. It places the emoji to the clipboard to be used wherever.
This commit is contained in:
@ -170,8 +170,9 @@ class driver(screenDriver):
|
||||
if screen is not None:
|
||||
use_screen = screen
|
||||
with open(use_screen, "w") as fd:
|
||||
for c in text:
|
||||
fcntl.ioctl(fd, termios.TIOCSTI, c)
|
||||
text_bytes = text.encode('utf-8')
|
||||
for byte in text_bytes:
|
||||
fcntl.ioctl(fd, termios.TIOCSTI, bytes([byte]))
|
||||
|
||||
def get_session_information(self):
|
||||
"""Retrieve session information via D-Bus logind interface.
|
||||
|
Reference in New Issue
Block a user