Eugeny / tabby

A terminal for a more modern age
https://tabby.sh
MIT License
59.43k stars 3.4k forks source link

Something Wrong with Save Output Plugin #5335

Open muyiwhy opened 2 years ago

muyiwhy commented 2 years ago

Describe the problem: When connect to a linux server with save output plugin on, if we use tab or backspace, there are something wrong with the log file. There are some meta info in the log file. (See the attach picture for detail)

image

To Reproduce: [Steps to reproduce the behavior]

Eugeny commented 2 years ago

Thanks for the report. The save-output plugin stores the complete terminal output in the file, including any dynamic screen updates. Here, you're seeing the carriage returns issued by the shell when re-drawing the prompt, and your own backspace inputs. I'm doing some automatic scrubbing to remove e.g. color-related escape sequences, but I don't have a solution to handle prompt redrawing (or other CR-based line updates) yet.

muyiwhy commented 2 years ago

Thanks for your reply. Looking forward for the issue to be fixed.