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.

[Question/Need help] How to make the content of the terminal reactive ?

See original GitHub issue

Hi, I use xterm and I figured out that the term.fit() is a single call. I mean itā€™s not reactive as our computer terminal.

So I guess Iā€™m doing something wrong because itā€™s would be bad if the reactive part isnā€™t existingā€¦

I create my terminal like this:

collection["term_" + _idContainer] = new Terminal({
                cursorBlink: true,
                termName: _idContainer
            }); 

//then I open it
 collection["term_" + _idContainer].open(document.getElementById(_idContainer));

//and I fit it
 collection["term_" + _idContainer].fit();

Now my problem is the following one, when I reduce the window size it deletes some chars: capture d ecran 2017-04-18 a 12 29 39 capture d ecran 2017-04-18 a 12 29 47 capture d ecran 2017-04-18 a 12 29 53

I have tried to do term.fit when I modify the window size but it doesnā€™t affect the text that is already written in the terminal.

I hope youā€™ll understand my problem and that we will find a solution

Details

  • Browser and browser version: Chrome latest one
  • OS version: macOS Sierra
  • xterm.js version: 2.3.2

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
mofuxcommented, Apr 18, 2017

@JeromeVi Yes, this is quite a challenging feature and we all look forward to have this finally implemented. I will open up a šŸŗ and happily praise @LucianBuzzo once itā€™s done šŸ˜…

1reaction
mofuxcommented, Apr 18, 2017

Oh I see, this is currently being worked on but not yet finalised. Take a look at #609 for more detail.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Unresponsive Terminal - Learning the UNIX ... - O'Reilly
Some systems have a reset command that you can run by typing CTRL-J reset CTRL-J. If this doesn't work, you may need to...
Read more >
Getting Started With Reactive - Quarkus
Reactive is a set of principles to build robust, efficient, and concurrent applications and systems. These principles let you handle more load thanĀ ......
Read more >
How to use the results of a reactive expression in an output
I'm trying to build a Shiny App that monitors my running containers on a host machine, and here is what I have tried...
Read more >
Chapter 15 Reactive building blocks | Mastering Shiny
In this chapter you've learned more about the building blocks that make Shiny work: reactive values, reactive expressions, observers, and timed evaluation. NowĀ ......
Read more >
Tackle Organic Chemistry Synthesis Questions - Leah4Sci
How to Tackle Organic Chemistry Synthesis Questions Tutorial for ... Reactive terminal alkyne; What functional group is present on theĀ ...
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