Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions ghostscope-ui/src/components/loading/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ impl LoadingUI {
.direction(Direction::Vertical)
.constraints([
Constraint::Fill(1),
Constraint::Length(18), // Height for loading box - increased for more content
Constraint::Length(19), // Height for loading box - increased for wrap support
Constraint::Fill(1),
])
.split(f.area());
Expand Down Expand Up @@ -107,7 +107,7 @@ impl LoadingUI {
let content_chunks = Layout::default()
.direction(Direction::Vertical)
.constraints([
Constraint::Length(1), // Header line
Constraint::Length(2), // Header line (2 lines for potential wrap)
Constraint::Length(1), // Copyright line
Constraint::Length(1), // License line
Constraint::Length(1), // Empty line
Expand All @@ -121,17 +121,22 @@ impl LoadingUI {
])
.split(inner_area);

// Header
let header_line = Line::from(vec![
// Header - with wrap support for narrow terminals
use ratatui::text::Text;
use ratatui::widgets::Wrap;

let header_text = Text::from(vec![Line::from(vec![
Span::styled("🔍 ", Style::default().fg(Color::Yellow)),
Span::styled(
"Ghostscope v0.1.0 - A DWARF-friendly eBPF userspace probe with gdb-like TUI",
"Ghostscope v0.1.0 - A DWARF-aware eBPF tracer with cgdb-like TUI - explore live processes at runtime",
Style::default()
.fg(Color::White)
.add_modifier(Modifier::BOLD),
),
]);
let header_paragraph = Paragraph::new(header_line).alignment(Alignment::Center);
])]);
let header_paragraph = Paragraph::new(header_text)
.alignment(Alignment::Center)
.wrap(Wrap { trim: true });
f.render_widget(header_paragraph, content_chunks[0]);

// Copyright
Expand Down
2 changes: 1 addition & 1 deletion ghostscope/src/config/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub enum LayoutMode {
#[derive(Parser, Debug)]
#[command(name = "ghostscope")]
#[command(
about = "A DWARF-friendly eBPF userspace probe with gdb-like TUI, built in 100% safe Rust"
about = "A DWARF-aware eBPF tracer with cgdb-like TUI - explore live processes at runtime"
)]
#[command(version = "0.1.0")]
pub struct Args {
Expand Down