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.

The content disorder when use up or down key of keyboard to switch history commands

See original GitHub issue

Details

  • Browser and browser version: 106.0.5249.119
  • OS version: macOS Big Sur
  • xterm.js version: 4.3.0

Steps to reproduce

  1. Link a machine
  2. Resize the window
  3. Use up or down key to switch history commands
  4. When the command is too long to on the same line, and click the key to switch again,then the previous command will stay,the next command will be disordered image The previous command actually is ssh localhost -p 2222, the next command actually is ssh -vvv 'admin:wjw@localhost' -p 2222

I suspect this is backend problem, but i console the bianry message when reproduce the problem and it looks the same as normal

when reproduce the problem:

00000000: 0808 0808 0808 0808 0808 0808 0808 0808  ................
00000001: 081b 5b31 3740 2d76 7676 2027 6164 6d69  ..[17@-vvv 'admi
00000002: 6e3a 776a 7740 6c6f 6361 6c68 6f73 7427  n:wjw@localhost'
00000003: 1b5b 431b 5b43 1b5b 431b 5b43 1b5b 431b  .[C.[C.[C.[C.[C.
00000004: 5b43 1b5b 431b 5b43                      [C.[C.[C

the normal bianry message:

00000000: 0808 0808 0808 0808 0808 0808 0808 0808  ................
00000001: 081b 5b31 3740 2d76 7676 2027 6164 6d69  ..[17@-vvv 'admi
00000002: 6e3a 776a 7740 6c6f 6361 6c68 6f73 7427  n:wjw@localhost'
00000003: 1b5b 431b 5b43 1b5b 431b 5b43 1b5b 431b  .[C.[C.[C.[C.[C.
00000004: 5b43 1b5b 431b 5b43                      [C.[C.[C

Hope to get help

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
NeroSolomoncommented, Nov 11, 2022

I found the problem: I send the cols to backend before autofit, so the cols is wrong. This issue can be closed. Thanks for your help

0reactions
NeroSolomoncommented, Oct 26, 2022

@jerch Can you tech me how to confirm the monospace width?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Key commands for Global Commands in Logic Pro
A table of Logic Pro Global Commands key commands. ... Show/Hide Step Input Keyboard ... Select Previous Track. Up Arrow. Select Next Track....
Read more >
Using Keyboard-only Navigation, for Web Accessibility
Navigating through a website with a keyboard uses the TAB key to move forward and the SHIFT+TAB combination to move backwards. These keys...
Read more >
Mouse Commands and Keyboard Shortcuts - Formulatrix
Press and hold down the CTRL key, and then click each item that you want to select. This command selects consecutive items on...
Read more >
Easy Checks – A First Review of Web Accessibility - W3C
In the "Full Keyboard Access" section, check "All Controls". Click in the address bar, then put your mouse aside and do not use...
Read more >
Visual Studio Code Key Bindings
Here you will find the complete list of key bindings for Visual Studio Code and how to change them.
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