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.

Xterm.js overwrites comands on same line if its longer

See original GitHub issue

Details

  • Browser and browser version: Latest chrome/firefox
  • OS version: Any Windows/Linux/Mac
  • xterm.js version: Latest

Steps to reproduce

  1. Change the value of cols as 81 or greater var term = new Terminal({cols:81}); or use term.fit(); image

    image

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
Tyriarcommented, Jun 3, 2018

This is normally related to the pty size not being synced with xterm.js’ size.

1reaction
fenfenraoraocommented, Mar 2, 2018

I have the same quesition too.When I enter the long term,Instead of wrapping,the Terminal enter the command at the beginning of the current line.How can I solve this problem?Thank you for your help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Long commands typed in bash overwrite the same line
Per bash documentation, the default behaviour is to wrap to a new line when the input is longer than the screen width. You...
Read more >
xtermjs fit addon causes line to overwrite previous line
This happens when the columns of xterm and columns of your serverside PTY are not equivalent. You can change the xterm columns and...
Read more >
How do I keep terminal line from overwriting itself? - Ask Ubuntu
Within PuTTY Reconfiguration, from left hand sidebar, click on Window > Set the size of the window > Columns. Update the Columns value...
Read more >
Encoding - Xterm.js
Terminal.write supports these input types with the following encoding: ... If in doubt check encoding support of every single component the data has...
Read more >
User and Workspace Settings - Visual Studio Code
To open the Settings editor, use the following VS Code menu command: ... If you have settings defined for the same language in...
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