question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Terminal characters replaced when going back with cursor

See original GitHub issue

OS/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

  1. Type a command (a litte bit longer) and execute
  2. Arrow up to use last command from bash history
  3. Go back with the cursor (using left arrow key; holding it)
  4. 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

image

Notes

This issue can be reproduced in VS Code: No

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
iFrozenPhoenixcommented, Jul 21, 2021

It’s in the terminal settings. The corresponding variable value is terminal.integrated.localEchoLatencyThreshold

image

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.

1reaction
iFrozenPhoenixcommented, Jul 21, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found