tomlin7 / mono

Embeddable terminal emulator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

First letter is repeated

Moosems opened this issue · comments

Screen.Recording.2024-04-17.at.3.36.26.PM.mov

Can't say much unless #1 is resolved

The letter repetition is ANSI being removed?

@Moosems I think so. On <Return>, the text since last output is considered as new input and written to the stream, then that part is removed from the text widget. The next output read will contain the entered command as well (hence I had to remove it from editor, so that it won't be shown twice). See below:

https://github.com/billyeatcookies/mono/blob/2e89a388be49b26d501351bdde3f57b9e9142163/mono/terminal.py#L97-L107

You can try removing code for the removal of command and running that to see if there are any changes. As of now, I can't reproduce this error yet in Windows. Also is this an issue caused only with clear command?