raphamorim / rio

A hardware-accelerated GPU terminal emulator focusing to run in desktops and browsers.
https://raphamorim.io/rio
MIT License
4.11k stars 136 forks source link

Status bar similar to iTerm2 #179

Open Alacho2 opened 1 year ago

Alacho2 commented 1 year ago

Having the option and ability to display static, useful information is a killer feature for me in iTerm2. I use it to display RAM and CPU usage, as well as to keep track of which folder I am currently in, without cluttering up each command with the same, synthetical sugar.

Being able to configure something similar in Rio would be a brilliant addition, I think. Some ideas for information to display:

As well as additional flexible and fixed spacers to make the UI as clean as the rest of Rio. 😊

motheki commented 10 months ago

@Alacho2 I don't know if there are any plans to implement the first 5 features on the list (The directory can be shown in the toolbar). but in the meantime I've been using btop in a separate tab to monitor resources.

Alacho2 commented 9 months ago

@Trevor-Opiyo This will be great as soon as split pane is in place. :)

Congee commented 1 week ago

An API to write arbitrary text to a bottom bar would be enough. wezterm already has gui_window:set_left_status() and I achieved customization like https://github.com/wez/wezterm/issues/2167#issuecomment-2156622912

Or even a better API - writing a buffer that supports sixel :D

j4james commented 1 week ago

FYI, there are standard escape sequences you could potentially support for this. On terminals that have a status line, the DECSSDT sequence configures it to be "host-writable", and then you use the DECSASD sequence to move the cursor into that area so you can write out whatever information you want there, exactly as you would in the main display.

As far as I can recall, the original hardware terminals didn't support sixel images being written in the status line, but there's no reason why a modern terminal couldn't do that. I know at least MLTerm allows it.