Comments (8)
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.
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.
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.
@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.
@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.
@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?
Line 380 in d2b202a
from termdash.
@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.
@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)
- termdash makes debugging panics difficult HOT 19
- Support styling across termdash HOT 2
- Termdash crashes on terminal resize with tcell
- Allow SplitFixed to set the size of the second container HOT 11
- Circular / Ring Buffer for Text Widget HOT 3
- Tracking container focus HOT 3
- How to display the cursor position and color of textinput in Linux environment? HOT 4
- options that set foreground / background color don't seem to be propagated to tcell HOT 8
- allow non-adaptive custom scale HOT 20
- add dim text style as cell.Option HOT 1
- adding text styles has no effect on Windows HOT 5
- bar chart with signed values HOT 2
- panic: unknown tcell event type: <nil> HOT 1
- Place two buttons one onto of each other
- How do I change the font size of text charactor? HOT 2
- Add list widget HOT 1
- How to add sub-container with id HOT 1
- Panic when attempting to use Backtab HOT 4
- Is there any way to render charts without handing over the entire terminal? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from termdash.