Coder Social home page Coder Social logo

How to use in tview about termdash HOT 8 OPEN

sayi65 avatar sayi65 commented on July 27, 2024
How to use in tview

from termdash.

Comments (8)

mum4k avatar mum4k commented on July 27, 2024

Hello @sayi65 and thank you for reaching out.

I am sorry, but I don't understand the question. Can you help me understand what you mean by "put this chat in tview" ?

from termdash.

sayi65 avatar sayi65 commented on July 27, 2024

Hello @mum4k

I want to put the barchart in the pages of the tview
I would like to know if there is any way to do this

from termdash.

mum4k avatar mum4k commented on July 27, 2024

Thank you for explaining the question.

I think this would be doable, but you would have to write some API adapters. Looks like tview also uses tcell. Both tview and termdash take over the entire screen with tcell, so they aren't directly compatible. However you could run tview and import just the widget code from the termdash repository. If you then write an adapter from the Widget API to what tview uses when talking to tcell, you should be able to make any widgets from her work with tview.

from termdash.

sayi65 avatar sayi65 commented on July 27, 2024

@mum4k
Thanks for the response. 

I think I have worked out how to put barchat into tview. However, when I change the screen from barchat to tview, it collapses. The current process is to use the TAB keyboard to change screens. is there any way to clear the barchat?

from termdash.

mum4k avatar mum4k commented on July 27, 2024

@sayi65 thank you for sharing the screenshots.

First we need to ensure that the barchart is no longer periodically drawing itself onto the terminal after we switch away.

Secondly this looks like we may need to instruct tview to clear / redraw the entire screen after we switch away form the barchart and stop drawing it. I am not familiar with tview and its API. Do you know if tview allows such a call?

from termdash.

sayi65 avatar sayi65 commented on July 27, 2024

@mum4k thank you for your comment.
Does it occur when transitioning from the barchat to the page on the tview side, so there is a process to clear in the barchat?
Since barchat uses containers, is there a way to clear the containers?
If the following function can clear the screen?

func Clear() Option {

from termdash.

mum4k avatar mum4k commented on July 27, 2024

@sayi65 is there any way how you could share the code that produce the images uploaded in the thread? Is there a repository or a branch I could look at?

That might help me to point you to the to a function or a process that would clear the screen.

from termdash.

sayi65 avatar sayi65 commented on July 27, 2024

@mum4k
Sorry for the late reply.Since this project is private. I will modify the code and share it later.

from termdash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.