Sender | Message | Time |
---|---|---|
2 Jun 2024 | ||
kdheepak | Just curious buddylindsey, how did you land on the examples page? Did you open Github, see an examples folder, click on the folder and picked a file to open based on the file name? | 17:42:39 |
kdheepak | * Just curious buddylindsey, how did you land on the examples page? Did you open Github, see an examples folder, click on the folder and pick a file to open based on the file name? | 17:42:54 |
kdheepak | I've opened an issue that will help solve this imo: https://github.com/ratatui-org/ratatui/issues/1161 | 17:57:53 |
buddylindsey | I do not recall how I knew they were there. I think I was told there are examples in the repo and so I just clicked around looking for things that looked similar to what I was trying to figure out. | 18:00:58 |
kdheepak | I've used this before https://crates.io/crates/rustyline | 18:01:35 |
volitional_decisions | This looks very helpful, especially the history and ctrl-C/D features | 18:42:42 |
artogahr joined the room. | 21:32:33 | |
rustypal_18616 | Hello everyone ! I have renamed the crate 'ratframe' to 'egui_ratatui' for clarity and discoverability. I removed unneccesary code and dependencies, there are no API changes, simply rename ratframe to egui_ratatui in all cases. The old version can be found in the PRE-RENAME branch, it contains the eframe examples which I have cut from this release. This release only contains bevy and macroquad examples. Absolutely feel free to contact me with any questions. Find the new version here: https://github.com/gold-silver-copper/egui_ratatui https://crates.io/crates/egui_ratatui | 22:34:23 |
3 Jun 2024 | ||
danik999 joined the room. | 10:07:33 | |
danik999 | use tui::backend::Backend; use tui::layout::Rect; use tui::widgets::{Block, Borders, Paragraph}; use tui::style::{Color, Style}; use tui::Frame; use crossterm::event::KeyCode; use crate::ui::Component; pub struct OutputComponent { pub message: String, pub scroll_x: u16, pub scroll_y: u16, } impl OutputComponent { pub fn new() -> Self { Self { message: String::new(), scroll_x: 0, scroll_y: 0, } } } impl Component for OutputComponent { fn draw<B: Backend>(&self, f: &mut Frame<B>, area: Rect, is_active: bool) { let block = Block::default() .borders(Borders::ALL) .title("Message") .style(Style::default().fg(if is_active { Color::Green } else { Color::White })); let paragraph = Paragraph::new(self.message.clone()) .block(block) .style(Style::default().fg(Color::Green)) .scroll((self.scroll_y, self.scroll_x)); f.render_widget(paragraph, area); } fn keybinds(&mut self, key: KeyCode) { match key { KeyCode::Up | KeyCode::Char('k') | KeyCode::Char('K') => { if self.scroll_y > 0 { self.scroll_y -= 1; } } KeyCode::Down | KeyCode::Char('j') | KeyCode::Char('J')=> { self.scroll_y += 1; } KeyCode::Left | KeyCode::Char('h') | KeyCode::Char('H') => { if self.scroll_x > 0 { self.scroll_x -= 1; } } KeyCode::Right | KeyCode::Char('l') | KeyCode::Char('L') => { self.scrollx += 1; } => {} } } } hey guys i need to add scrollbar to right corner do you have any ideas how can i do it? | 12:30:07 |
orhunp | you can render a [Scrollbar widget](https://docs.rs/ratatui/latest/ratatui/widgets/struct.Scrollbar.html) as follows: | 17:05:03 |
danik999 | Thanks man | 17:24:03 |
_desligado joined the room. | 17:56:12 | |
dekirisu joined the room. | 18:09:47 | |
yuri@FreeBSD | How to fill datasets for the Chart object dynamically? This code with static dataset elements (like in Ratatui examples) compiles fine:
but a similar code with the dynamic array fails:
It fails like this:
| 23:51:07 |
yuri@FreeBSD | * How to fill datasets for the Chart object dynamically? This code with static dataset elements (like in Ratatui examples) compiles fine:
but a similar code with the dynamic array fails:
It fails like this:
| 23:51:54 |
4 Jun 2024 | ||
yuri@FreeBSD | * How to fill datasets for the Chart object dynamically? This code with static dataset elements (like in Ratatui examples) compiles fine:
but a similar code with the dynamic array fails:
It fails like this:
| 01:37:49 |
7 Jun 2024 | ||
@awiteb:4rs.nl joined the room. | 11:45:50 | |
@awiteb:4rs.nl left the room. | 11:51:06 | |
@awiteb:4rs.nl joined the room. | 11:51:21 | |
@awiteb:4rs.nl left the room. | 11:52:56 | |
8 Jun 2024 | ||
max_ishere changed their profile picture. | 10:12:18 | |
11 Jun 2024 | ||
Aziz Emir joined the room. | 16:51:35 | |
19 Jun 2024 | ||
Sam O’nella joined the room. | 05:39:48 | |
21 Jun 2024 | ||
@auronandace:matrix.org left the room. | 08:18:48 | |
23 Jun 2024 | ||
@joao00066joao:matrix.org joined the room. | 18:59:05 | |
@joao00066joao:matrix.org left the room. | 18:59:58 | |
27 Jun 2024 | ||
@alemi:alemi.dev left the room. | 16:19:47 | |
29 Jun 2024 | ||
Sam O’nella changed their display name from burntkrispe to BurntKrispe. | 05:28:40 | |
30 Jun 2024 | ||
Avery set a profile picture. | 00:06:06 |