You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I did some debugging with xev and noticed that Enigo is using 0x0a for newline, while other libraries (like PyAutoGUI for example) use 0x0d for carriage return to simulate the newline when you call for it.
So it seems like an application specific interpretation of 0x0a, which seems to be the right behavior. But if you really wanted it to work as expected you'd have to force it to use 0x0d. VSCode / terminal are totally cool with 0x0a but Gedit/Kate/Libreoffice won't produce anything.
If you printf '\x0a' into a text file and open it with Gedit the newline doesn't appear but if you open it in vscode or with cat you see the new line. Not sure why this application specific interpretation is the way it is
Describe the bug
On X11, the number of newlines produced by the code below differs between GNOME Terminal 3.44.0 and gedit 41.0.
To Reproduce
The following code produces four newlines on GNOME Terminal and zero newlines on gedit:
The following code produces two newlines on GNOME Terminal and one newline on gedit:
Expected behavior
An
\n
inkey_sequence
should produce exactly one newline, regardless of application.Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: