Comments (5)
Thanks, yeah this is one of the features that I have on my wish list.
I am in the final stages of changing from tui-rs to ratatui, the latter of which sounds like it'll merge some new widgets, which should make user input a lot easier.
Would need to think about the best way to show all the information, as the output from a container could be multi-lined, or possibly difficult to convey in a small section of the oxker window. Although, ctop
, when in exec shell mode, takes control of the whole terminal (disregarding the ctop
ui)?
from oxker.
Ohh sounds great, you made my day! Besides, I didn't know ratatui so that's cool
In fact yes, ctop
cleans all the ui taking the whole screen. Not a bad option although I don't know if it would fit with oxker's design 🤔...
ctop
does one thing to display more information by pressing the left and right keys on a selected container. Left to show the log and Right to show cpu/ram/network,...it's as if it had 3 windows, the main one and 2 on the sides.
As an idea based on this, maybe a shell could be executed by pressing the right key or something similar.
Although another solution could be to press Enter when a container is selected, click on "exec shell" and split the log section in half... I'm not sure
from oxker.
Sounds good, yeah I'll give it a think, as want to try to keep oxker
as simple as possible.
I do quite like the ctop
method of taking control of the whole terminal, could replicate something like that, although maybe keep a bar at the top, saying something like "You are currently in a shell of [container-name]".
I've just released v0.3.0 of oxker
, so probably won't investigate this feature until the next time I spend some time on oxker
, although I agree that it should have this ability.
from oxker.
Sure, and I was surprised how fast you released the new version 🎉 I'm gonna take a look at it.
maybe keep a bar at the top, saying something like "You are currently in a shell of [container-name]"
I like this idea so much! (ctop
doesn't do this).
from oxker.
I have a basic working version, see the feat/exec_tty branch, and specifically the exec.rs file, but I cannot get it to execute correctly.
Specifically, when exiting a container shell, a user needs to press an additional key press before oxker
enters the correct state, but I am at a loss as to where this specific issue, possible a lock, comes from.
The feat/exec_tty branch at the moment shows a popup, telling the user to press 'c' twice
, to resolve this issue, but obviously this is not in anyway a good solution. It also has lots of useless code, mainly drops, as I try to work out where the issue originates from.
There are other issues, and edge cases with container shells, that need to be fixed but they are all straight forward to resolve compared to this current quandary.
EDIT: I think ctop
has the same behavior, at least on my local & remote systems. If you exit from an exec shell, when back on the main ctop
screen the first button press is ignored. In which case, I don't know the best way to proceed
from oxker.
Related Issues (20)
- [NEW FEATURE] Publish as Docker image HOT 6
- [BUG] Duplicate log entries
- Track `Cargo.lock` HOT 3
- [BUG] Heading bar loading icon color & position
- [NEW FEATURE] put container name next to Logs title
- [BUG] Malformed escape codes in docker logs causes panic HOT 5
- [NEW FEATURE] Sort columns reset
- [BUG] disable oxker commands
- [NEW FEATURE] Memory column spacing
- [NEW FEATURE] List Port HOT 2
- [BUG] created_at clash
- [NEW FEATURE] long term - detach logic
- [NEW FEATURE] Delete / Remove containers HOT 3
- [BUG] GHCR build issues HOT 1
- [BUG] Unable to access docker daemon HOT 10
- [NEW FEATURE] about column layout HOT 9
- [BUG] - Memory displayed incorrect HOT 3
- [BUG] issue freeze when click on CPU to show from high to low HOT 6
- [BUG] unwrap err on rebuild
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 oxker.