Comments (6)
Can you be more specific? (like rolling log?)
from termui.
@gizak While I'm not the original requestor, my interest in the feature as you describe it is what brought me here.
I noticed that you were able to get the 'list' to animate randomly in theme.go which got me thinking about using something like https://github.com/hpcloud/tail to tail a 'live' log file and then present it in a box that would only show the last nth lines, updating the window when new lines are read.
Python's urwid has a similar widget called a ListWalker (example https://github.com/wardi/urwid/blob/master/examples/edit.py#L38)
It seems like a nontrivial task to implement all the elements that would make a log window (and beyond my current go capabilities, I'm new) - so I'm not expecting anything by posting this. Just wanted to say that if that's not what the OP is requesting, I think it should be. ;)
from termui.
@soloradish @synthesizerpatel Late to the party, but I believe I just implemented this yesterday. Check out my project and let me know if that widget (the primary one in the application) is what you had in mind.
from termui.
@ns-cweber you might also want to look at my project - https://github.com/mikepea/go-jira-ui - which also has a less-like UI implemented via the List handler. Would be good to chat about where we're at and finding some common patterns :)
from termui.
@mikepea That looks very much like what I'd like to work toward (specifically with a cursor) though I got a couple of panics on resize (specifically resizing to be very small and going from full-screen to floating window in OS X). I'll take a look at your implementation.
from termui.
Yeah, that seems to happen when a window is resized quickly / drastically - i've not gotten to the bottom of it yet. My email address is [email protected] if you want to chat out-of-band.
from termui.
Related Issues (20)
- When WrapText is enabled, the computation of which rows to show is incorrect.
- Broken link in wiki
- Is termui still actively maintained? HOT 12
- how does the line plot show the negative numbers HOT 1
- ModifierReverse causes characters to become clear in Gauge HOT 1
- enhancement: widget list support colored item HOT 1
- Colored Tables HOT 1
- Can't get better ascii border to display only the simple +,-,| ones. HOT 2
- How to use `[` and `]` characters in cells ? HOT 2
- Is it possible to set the size of an image widget inside a grid cell?
- [Request] add GIF image to describe each post in wiki.
- Issue after termbox-go is upgraded
- Grid cannot be aligned
- wishlist: support 'Symbols for Legacy Computing' 'Smooth mosaic terminal graphic characters' for graphs
- Feature Request: add containers for widgets
- termbox-go v1.1.1 incompatibility issues and wide character related issues HOT 3
- A example of autoscrolling for line wrapping scene
- List widget panics with `index out of range[-1]`
- The List.go demonstration shows an exception
- Is there any way to render charts without handing over the entire terminal?
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 termui.