Coder Social home page Coder Social logo

Comments (5)

mrjackwills avatar mrjackwills commented on June 26, 2024 1

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.

varaskkar avatar varaskkar commented on June 26, 2024

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.

mrjackwills avatar mrjackwills commented on June 26, 2024

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.

varaskkar avatar varaskkar commented on June 26, 2024

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.

mrjackwills avatar mrjackwills commented on June 26, 2024

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)

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.