Terminal characters replaced when going back with cursor
See original GitHub issueOS/Web Information
- Web Browser: Microsoft Edge Version 91.0.864.70
- Local OS: Windows 10 20.04
- Remote OS: Debian 10
- Remote Architecture: x86
code-server --version
: 3.10.2 387b12ef4ca404ffd39d84834e1f0776e9e3c005
Steps to Reproduce
- Type a command (a litte bit longer) and execute
- Arrow up to use last command from bash history
- Go back with the cursor (using left arrow key; holding it)
- Sometimes the terminal is overwritten as seen
It’s also possible to reconstruct the issue while writing a long command and then going back to the start to change something.
Issue is reproduceable for me on different systems,
Expected
The terminal does not replace characters, just from going back to the beginning of the command.
Actual
The terminal line changes and replaces character (Just visually, if the command is executed, the text is still the same)
It seems that it has something to do with rendering, because if the browser is zoomed in and out the text is reset to the correct output.
Logs
Screenshot
Notes
This issue can be reproduced in VS Code: No
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How to insert a character on a terminal, rather than replace?
I can echo the left arrow sequence back to the terminal to get the cursor to shift left one character on the terminal....
Read more >When I click on my terminal, strange characters appear
I come back and it's written broken pipe . When I click on the terminal window, a succession of characters appear. If I...
Read more >Cursor moving by more than one character #9875 - GitHub
Type text in a Terminal tab, at a regular bash command prompt, using Office Code Pro D font and bar style cursor.
Read more >Bug #378668 “Cursor in terminal behaves badly with special ...
Description: With special characters present before the $ sign, when going back to the previous line (backspace or cursor keys), the cursor ......
Read more >Navigating and Editing the Command Line – Bash Edition
Editing Commands in the Command Line # Swap 'em! CTRL+t Swap the last two characters before the cursor ALT+t / ESC+t Swap current...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s in the terminal settings. The corresponding variable value is terminal.integrated.localEchoLatencyThreshold
I think what could be problematic is the fact, that it’s default value is 30, i.e. the experimental feature is enabled by default.
Could this problem eventually be caused by the setting “Local echo latency threshold”? After deactivating it (Setting to -1) the problem does not seem to appear again.