tui: ASCII onion chrome, themed panes, and real keyboard navigation
- Hand-written wordmark banner (<=80 cols, auto-collapses to a compact
mark below banner width) plus onion glyph and themed screen headings
- Color-palette consts, stateful pane titles, highlighted selection row
(accent + bg), context-sensitive footer that always keeps '? help'
- Pane focus model (roster/chat/composer) with Tab/Shift-Tab, 1/2/3,
j/k + arrows, g/G, and a '?' help overlay; Esc closes any overlay
- New tests/tui_chrome.rs: banner widths, help overlay bindings, real
footer helper at 80 and 120 cols, 80x24 draw smoke test
- README keybinding table updated to match
Locked helper strings (fingerprint_mismatch_banner, rotate_screen_text,
wipe_screen_text, parse_slash) unchanged; UI-only (src/tui.rs).
2026-09-10 13:01:40 -04:00
|
|
|
//! Main-screen chrome helpers: ASCII wordmark, compact fallback, help text.
|
|
|
|
|
|
2026-09-10 16:53:03 -04:00
|
|
|
use onionwire::qr;
|
tui: ASCII onion chrome, themed panes, and real keyboard navigation
- Hand-written wordmark banner (<=80 cols, auto-collapses to a compact
mark below banner width) plus onion glyph and themed screen headings
- Color-palette consts, stateful pane titles, highlighted selection row
(accent + bg), context-sensitive footer that always keeps '? help'
- Pane focus model (roster/chat/composer) with Tab/Shift-Tab, 1/2/3,
j/k + arrows, g/G, and a '?' help overlay; Esc closes any overlay
- New tests/tui_chrome.rs: banner widths, help overlay bindings, real
footer helper at 80 and 120 cols, 80x24 draw smoke test
- README keybinding table updated to match
Locked helper strings (fingerprint_mismatch_banner, rotate_screen_text,
wipe_screen_text, parse_slash) unchanged; UI-only (src/tui.rs).
2026-09-10 13:01:40 -04:00
|
|
|
use onionwire::tui::{
|
2026-09-10 23:32:06 -04:00
|
|
|
Pane, banner_for_width, compact_banner, draw_share, help_overlay_text, main_footer_hints,
|
|
|
|
|
onion_glyph, status_footer, wordmark_banner,
|
tui: ASCII onion chrome, themed panes, and real keyboard navigation
- Hand-written wordmark banner (<=80 cols, auto-collapses to a compact
mark below banner width) plus onion glyph and themed screen headings
- Color-palette consts, stateful pane titles, highlighted selection row
(accent + bg), context-sensitive footer that always keeps '? help'
- Pane focus model (roster/chat/composer) with Tab/Shift-Tab, 1/2/3,
j/k + arrows, g/G, and a '?' help overlay; Esc closes any overlay
- New tests/tui_chrome.rs: banner widths, help overlay bindings, real
footer helper at 80 and 120 cols, 80x24 draw smoke test
- README keybinding table updated to match
Locked helper strings (fingerprint_mismatch_banner, rotate_screen_text,
wipe_screen_text, parse_slash) unchanged; UI-only (src/tui.rs).
2026-09-10 13:01:40 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
|
fn wordmark_banner_is_nonempty_and_fits_80() {
|
|
|
|
|
let banner = wordmark_banner();
|
|
|
|
|
assert!(!banner.is_empty());
|
|
|
|
|
for line in banner.lines() {
|
|
|
|
|
assert!(
|
|
|
|
|
line.chars().count() <= 80,
|
|
|
|
|
"wordmark line exceeds 80 chars: {line:?} ({})",
|
|
|
|
|
line.chars().count()
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
|
fn compact_banner_is_nonempty_and_fits_40() {
|
|
|
|
|
let compact = compact_banner();
|
|
|
|
|
assert!(!compact.is_empty());
|
|
|
|
|
assert!(
|
|
|
|
|
compact.chars().count() <= 40,
|
|
|
|
|
"compact banner exceeds 40 chars ({})",
|
|
|
|
|
compact.chars().count()
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
|
fn onion_glyph_is_nonempty() {
|
|
|
|
|
assert!(!onion_glyph().is_empty());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
|
fn help_overlay_lists_core_bindings() {
|
|
|
|
|
let help = help_overlay_text();
|
|
|
|
|
assert!(!help.is_empty());
|
2026-09-10 14:37:43 -04:00
|
|
|
for needle in [
|
2026-09-10 23:32:06 -04:00
|
|
|
"Tab",
|
|
|
|
|
"F2",
|
|
|
|
|
"F3",
|
|
|
|
|
"F4",
|
|
|
|
|
"F5",
|
2026-09-13 23:25:25 -04:00
|
|
|
"F6",
|
2026-09-17 20:48:10 -04:00
|
|
|
"F8",
|
tui: WALLETS and SETTINGS menu (F9 / /settings) over the landed wallet + node features
The Monero wallet and the cuprate node shipped behind function keys only, so a
user who did not already know F6 opened the wallet could not find wallet setup,
the child wallet, the chain source or the settings.
F9 (also /settings) now opens one discoverable screen with the two groups the
card fixes: WALLET (endpoint, child, sync, receive, balance, payments, create,
import) then SETTINGS (nickname, profile, identity, colour, backup, restore,
wipe, wipe-all). Every actionable row prints the key or command that fires it,
including the F6 wallet screen's own keys, and those keys stay live on the
screen so no row can name a dead key.
- Screen, not popup: 19 rows at 80x24 against 21 inner rows; 120x40 and 200x60
hold. The footer is the shared status_footer, so TOR / identity / ? help stay
put.
- No credentials: WalletMenuState carries booleans, labels and display-ready
error strings only. rpc_login, secret(), seeds and passphrases have no field
to travel in.
- Untrusted values are display data: sanitize + newline/tab strip, then
truncated in cells.
- Cells, not chars: cell_width() measures through ratatui's own Span::width, so
no unicode-width dependency was added and chars().count() is never a width.
- Copy without a clipboard crate: c writes the receive address as an OSC 52
sequence; the terminal owns the clipboard and it survives SSH.
- Colour is never the only signal: every state also spells itself out.
- F7 stays free for the endpoint config screen that names it (db208be,
docs/WALLET.md).
F2/F3/F4/F5/F6/F8 keep working: the function keys are now handled once, for Main
and this screen, instead of inside the Main arm.
2026-09-18 22:26:57 -04:00
|
|
|
"F9",
|
2026-09-10 23:32:06 -04:00
|
|
|
"send chat",
|
|
|
|
|
"/profile",
|
|
|
|
|
"/pay",
|
|
|
|
|
"/tip",
|
2026-09-13 23:25:25 -04:00
|
|
|
"/wallet create",
|
|
|
|
|
"/wallet import",
|
2026-09-10 23:32:06 -04:00
|
|
|
"/file",
|
|
|
|
|
"/backup",
|
|
|
|
|
"/restore",
|
tui: WALLETS and SETTINGS menu (F9 / /settings) over the landed wallet + node features
The Monero wallet and the cuprate node shipped behind function keys only, so a
user who did not already know F6 opened the wallet could not find wallet setup,
the child wallet, the chain source or the settings.
F9 (also /settings) now opens one discoverable screen with the two groups the
card fixes: WALLET (endpoint, child, sync, receive, balance, payments, create,
import) then SETTINGS (nickname, profile, identity, colour, backup, restore,
wipe, wipe-all). Every actionable row prints the key or command that fires it,
including the F6 wallet screen's own keys, and those keys stay live on the
screen so no row can name a dead key.
- Screen, not popup: 19 rows at 80x24 against 21 inner rows; 120x40 and 200x60
hold. The footer is the shared status_footer, so TOR / identity / ? help stay
put.
- No credentials: WalletMenuState carries booleans, labels and display-ready
error strings only. rpc_login, secret(), seeds and passphrases have no field
to travel in.
- Untrusted values are display data: sanitize + newline/tab strip, then
truncated in cells.
- Cells, not chars: cell_width() measures through ratatui's own Span::width, so
no unicode-width dependency was added and chars().count() is never a width.
- Copy without a clipboard crate: c writes the receive address as an OSC 52
sequence; the terminal owns the clipboard and it survives SSH.
- Colour is never the only signal: every state also spells itself out.
- F7 stays free for the endpoint config screen that names it (db208be,
docs/WALLET.md).
F2/F3/F4/F5/F6/F8 keep working: the function keys are now handled once, for Main
and this screen, instead of inside the Main arm.
2026-09-18 22:26:57 -04:00
|
|
|
"/wipe-all",
|
|
|
|
|
"/settings",
|
2026-09-10 23:32:06 -04:00
|
|
|
"Ctrl-Q",
|
|
|
|
|
"?",
|
2026-09-10 14:37:43 -04:00
|
|
|
] {
|
tui: ASCII onion chrome, themed panes, and real keyboard navigation
- Hand-written wordmark banner (<=80 cols, auto-collapses to a compact
mark below banner width) plus onion glyph and themed screen headings
- Color-palette consts, stateful pane titles, highlighted selection row
(accent + bg), context-sensitive footer that always keeps '? help'
- Pane focus model (roster/chat/composer) with Tab/Shift-Tab, 1/2/3,
j/k + arrows, g/G, and a '?' help overlay; Esc closes any overlay
- New tests/tui_chrome.rs: banner widths, help overlay bindings, real
footer helper at 80 and 120 cols, 80x24 draw smoke test
- README keybinding table updated to match
Locked helper strings (fingerprint_mismatch_banner, rotate_screen_text,
wipe_screen_text, parse_slash) unchanged; UI-only (src/tui.rs).
2026-09-10 13:01:40 -04:00
|
|
|
assert!(help.contains(needle), "help overlay missing {needle:?}");
|
|
|
|
|
}
|
|
|
|
|
for line in help.lines() {
|
|
|
|
|
assert!(
|
|
|
|
|
line.chars().count() <= 80,
|
|
|
|
|
"help line exceeds 80 chars: {line:?}"
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
|
fn banner_for_width_collapses_when_narrow() {
|
|
|
|
|
let full = wordmark_banner();
|
|
|
|
|
let max_line = full.lines().map(|l| l.chars().count()).max().unwrap();
|
|
|
|
|
assert_eq!(banner_for_width(max_line as u16), full);
|
|
|
|
|
assert_eq!(banner_for_width(max_line as u16 - 1), compact_banner());
|
|
|
|
|
assert_eq!(banner_for_width(80), full);
|
|
|
|
|
assert_eq!(banner_for_width(120), full);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
|
fn chrome_renders_at_80x24_and_120x40() {
|
2026-09-10 23:32:06 -04:00
|
|
|
use ratatui::Terminal;
|
tui: ASCII onion chrome, themed panes, and real keyboard navigation
- Hand-written wordmark banner (<=80 cols, auto-collapses to a compact
mark below banner width) plus onion glyph and themed screen headings
- Color-palette consts, stateful pane titles, highlighted selection row
(accent + bg), context-sensitive footer that always keeps '? help'
- Pane focus model (roster/chat/composer) with Tab/Shift-Tab, 1/2/3,
j/k + arrows, g/G, and a '?' help overlay; Esc closes any overlay
- New tests/tui_chrome.rs: banner widths, help overlay bindings, real
footer helper at 80 and 120 cols, 80x24 draw smoke test
- README keybinding table updated to match
Locked helper strings (fingerprint_mismatch_banner, rotate_screen_text,
wipe_screen_text, parse_slash) unchanged; UI-only (src/tui.rs).
2026-09-10 13:01:40 -04:00
|
|
|
use ratatui::backend::TestBackend;
|
|
|
|
|
use ratatui::layout::{Constraint, Layout};
|
|
|
|
|
use ratatui::widgets::Paragraph;
|
|
|
|
|
|
|
|
|
|
let fp = "abcdef0123456789";
|
2026-09-10 19:52:44 -04:00
|
|
|
let onion = "abcdefghijklmnopqrstuvwxyz234567abcdefghijklmnopqrstuvwx.onion";
|
tui: ASCII onion chrome, themed panes, and real keyboard navigation
- Hand-written wordmark banner (<=80 cols, auto-collapses to a compact
mark below banner width) plus onion glyph and themed screen headings
- Color-palette consts, stateful pane titles, highlighted selection row
(accent + bg), context-sensitive footer that always keeps '? help'
- Pane focus model (roster/chat/composer) with Tab/Shift-Tab, 1/2/3,
j/k + arrows, g/G, and a '?' help overlay; Esc closes any overlay
- New tests/tui_chrome.rs: banner widths, help overlay bindings, real
footer helper at 80 and 120 cols, 80x24 draw smoke test
- README keybinding table updated to match
Locked helper strings (fingerprint_mismatch_banner, rotate_screen_text,
wipe_screen_text, parse_slash) unchanged; UI-only (src/tui.rs).
2026-09-10 13:01:40 -04:00
|
|
|
for (w, h) in [(80u16, 24u16), (120, 40)] {
|
|
|
|
|
let backend = TestBackend::new(w, h);
|
|
|
|
|
let mut terminal = Terminal::new(backend).expect("terminal");
|
|
|
|
|
terminal
|
|
|
|
|
.draw(|f| {
|
|
|
|
|
let banner = banner_for_width(f.area().width);
|
|
|
|
|
let banner_h = banner.lines().count() as u16;
|
|
|
|
|
let chunks = Layout::vertical([
|
|
|
|
|
Constraint::Length(banner_h),
|
|
|
|
|
Constraint::Min(3),
|
|
|
|
|
Constraint::Length(1),
|
|
|
|
|
])
|
|
|
|
|
.split(f.area());
|
|
|
|
|
f.render_widget(Paragraph::new(banner), chunks[0]);
|
|
|
|
|
let footer = status_footer(f.area().width, fp, onion, None, main_footer_hints());
|
|
|
|
|
f.render_widget(Paragraph::new(footer), chunks[2]);
|
|
|
|
|
})
|
|
|
|
|
.expect("draw");
|
|
|
|
|
let buf = terminal.backend().buffer();
|
|
|
|
|
let row0: String = (0..w).map(|x| buf[(x, 0)].symbol().to_string()).collect();
|
|
|
|
|
assert!(
|
|
|
|
|
row0.contains("ONIONWIRE"),
|
|
|
|
|
"banner missing on row 0 at {w}x{h}: {row0:?}"
|
|
|
|
|
);
|
|
|
|
|
let footer: String = (0..w)
|
|
|
|
|
.map(|x| buf[(x, h - 1)].symbol().to_string())
|
|
|
|
|
.collect();
|
|
|
|
|
assert!(
|
|
|
|
|
footer.contains("? help"),
|
|
|
|
|
"footer missing ? help at {w}x{h}: {footer:?}"
|
|
|
|
|
);
|
|
|
|
|
assert!(
|
|
|
|
|
footer.contains("TOR"),
|
|
|
|
|
"footer missing TOR at {w}x{h}: {footer:?}"
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
|
fn main_footer_keeps_help_at_80_and_120() {
|
|
|
|
|
let fp = "abcdef0123456789deadbeef";
|
2026-09-10 19:52:44 -04:00
|
|
|
let onion = "abcdefghijklmnopqrstuvwxyz234567abcdefghijklmnopqrstuvwx.onion";
|
tui: ASCII onion chrome, themed panes, and real keyboard navigation
- Hand-written wordmark banner (<=80 cols, auto-collapses to a compact
mark below banner width) plus onion glyph and themed screen headings
- Color-palette consts, stateful pane titles, highlighted selection row
(accent + bg), context-sensitive footer that always keeps '? help'
- Pane focus model (roster/chat/composer) with Tab/Shift-Tab, 1/2/3,
j/k + arrows, g/G, and a '?' help overlay; Esc closes any overlay
- New tests/tui_chrome.rs: banner widths, help overlay bindings, real
footer helper at 80 and 120 cols, 80x24 draw smoke test
- README keybinding table updated to match
Locked helper strings (fingerprint_mismatch_banner, rotate_screen_text,
wipe_screen_text, parse_slash) unchanged; UI-only (src/tui.rs).
2026-09-10 13:01:40 -04:00
|
|
|
let hints = main_footer_hints();
|
|
|
|
|
assert!(hints.contains("? help"));
|
|
|
|
|
for w in [80u16, 120] {
|
|
|
|
|
let line = status_footer(w, fp, onion, None, hints);
|
|
|
|
|
assert!(
|
|
|
|
|
line.chars().count() <= w as usize,
|
|
|
|
|
"footer wider than {w}: {} {line:?}",
|
|
|
|
|
line.chars().count()
|
|
|
|
|
);
|
|
|
|
|
assert!(
|
|
|
|
|
line.contains("? help"),
|
|
|
|
|
"footer missing ? help at {w}: {line:?}"
|
|
|
|
|
);
|
|
|
|
|
assert!(line.contains("TOR"), "footer missing TOR at {w}: {line:?}");
|
|
|
|
|
assert!(
|
|
|
|
|
line.contains("me:"),
|
|
|
|
|
"footer missing identity at {w}: {line:?}"
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
let crowded = status_footer(80, fp, onion, Some("rotated · notified 1/2 friends"), hints);
|
|
|
|
|
assert!(
|
|
|
|
|
crowded.chars().count() <= 80,
|
|
|
|
|
"crowded footer wider than 80: {} {crowded:?}",
|
|
|
|
|
crowded.chars().count()
|
|
|
|
|
);
|
|
|
|
|
assert!(
|
|
|
|
|
crowded.contains("? help"),
|
|
|
|
|
"status note crowded out ? help: {crowded:?}"
|
|
|
|
|
);
|
|
|
|
|
assert!(
|
|
|
|
|
crowded.contains("TOR"),
|
|
|
|
|
"crowded footer missing TOR: {crowded:?}"
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
|
fn pane_focus_cycles_roster_chat_composer() {
|
|
|
|
|
assert_eq!(Pane::Roster.next(), Pane::Chat);
|
|
|
|
|
assert_eq!(Pane::Chat.next(), Pane::Composer);
|
|
|
|
|
assert_eq!(Pane::Composer.next(), Pane::Roster);
|
|
|
|
|
assert_eq!(Pane::Roster.prev(), Pane::Composer);
|
|
|
|
|
assert_eq!(Pane::Chat.prev(), Pane::Roster);
|
|
|
|
|
assert_eq!(Pane::Composer.prev(), Pane::Chat);
|
|
|
|
|
}
|
2026-09-10 14:50:01 -04:00
|
|
|
|
tui: WALLETS and SETTINGS menu (F9 / /settings) over the landed wallet + node features
The Monero wallet and the cuprate node shipped behind function keys only, so a
user who did not already know F6 opened the wallet could not find wallet setup,
the child wallet, the chain source or the settings.
F9 (also /settings) now opens one discoverable screen with the two groups the
card fixes: WALLET (endpoint, child, sync, receive, balance, payments, create,
import) then SETTINGS (nickname, profile, identity, colour, backup, restore,
wipe, wipe-all). Every actionable row prints the key or command that fires it,
including the F6 wallet screen's own keys, and those keys stay live on the
screen so no row can name a dead key.
- Screen, not popup: 19 rows at 80x24 against 21 inner rows; 120x40 and 200x60
hold. The footer is the shared status_footer, so TOR / identity / ? help stay
put.
- No credentials: WalletMenuState carries booleans, labels and display-ready
error strings only. rpc_login, secret(), seeds and passphrases have no field
to travel in.
- Untrusted values are display data: sanitize + newline/tab strip, then
truncated in cells.
- Cells, not chars: cell_width() measures through ratatui's own Span::width, so
no unicode-width dependency was added and chars().count() is never a width.
- Copy without a clipboard crate: c writes the receive address as an OSC 52
sequence; the terminal owns the clipboard and it survives SSH.
- Colour is never the only signal: every state also spells itself out.
- F7 stays free for the endpoint config screen that names it (db208be,
docs/WALLET.md).
F2/F3/F4/F5/F6/F8 keep working: the function keys are now handled once, for Main
and this screen, instead of inside the Main arm.
2026-09-18 22:26:57 -04:00
|
|
|
#[test]
|
|
|
|
|
fn menu_key_is_listed_in_help_and_in_the_main_footer() {
|
|
|
|
|
// Discoverability: the WALLETS & SETTINGS menu has to be findable from the
|
|
|
|
|
// help overlay *and* from the main footer, or F9 is a secret.
|
|
|
|
|
let help = help_overlay_text();
|
|
|
|
|
assert!(help.contains("F9"), "F9 missing from help:\n{help}");
|
|
|
|
|
assert!(
|
|
|
|
|
help.contains("/settings"),
|
|
|
|
|
"/settings missing from help:\n{help}"
|
|
|
|
|
);
|
|
|
|
|
let hints = main_footer_hints();
|
|
|
|
|
assert!(
|
|
|
|
|
hints.contains("F9"),
|
|
|
|
|
"F9 missing from footer hints: {hints:?}"
|
|
|
|
|
);
|
|
|
|
|
let fp = "abcdef0123456789deadbeef";
|
|
|
|
|
let onion = "abcdefghijklmnopqrstuvwxyz234567abcdefghijklmnopqrstuvwx.onion";
|
|
|
|
|
for w in [80u16, 120, 200] {
|
|
|
|
|
let line = status_footer(w, fp, onion, None, hints);
|
|
|
|
|
assert!(line.contains("F9"), "F9 dropped at {w}: {line:?}");
|
|
|
|
|
assert!(line.contains("? help"), "? help dropped at {w}: {line:?}");
|
|
|
|
|
assert!(line.contains("TOR"), "TOR dropped at {w}: {line:?}");
|
|
|
|
|
assert!(
|
|
|
|
|
line.chars().count() <= w as usize,
|
|
|
|
|
"footer wider than {w}: {line:?}"
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-09-10 14:50:01 -04:00
|
|
|
#[test]
|
|
|
|
|
fn restore_terminal_is_callable_without_panic() {
|
|
|
|
|
onionwire::tui::restore_terminal();
|
|
|
|
|
}
|
2026-09-10 16:53:03 -04:00
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
|
fn share_screen_shows_invite_not_qr_at_80x24() {
|
|
|
|
|
use ratatui::Terminal;
|
2026-09-10 23:32:06 -04:00
|
|
|
use ratatui::backend::TestBackend;
|
2026-09-10 16:53:03 -04:00
|
|
|
|
|
|
|
|
let sk = [7u8; 32];
|
2026-09-10 19:52:44 -04:00
|
|
|
let onion = "abcdefghijklmnopqrstuvwxyz234567abcdefghijklmnopqrstuvwx.onion";
|
2026-09-10 16:53:03 -04:00
|
|
|
let payload = qr::encode(&sk, onion, &[1u8; 32]).expect("encode");
|
|
|
|
|
assert!(payload.starts_with("onionwire:v1:"));
|
|
|
|
|
|
|
|
|
|
let backend = TestBackend::new(80, 24);
|
|
|
|
|
let mut terminal = Terminal::new(backend).expect("terminal");
|
|
|
|
|
terminal.draw(|f| draw_share(f, &payload)).expect("draw");
|
|
|
|
|
let buf = terminal.backend().buffer();
|
|
|
|
|
let mut screen = String::new();
|
|
|
|
|
for y in 0..24u16 {
|
|
|
|
|
for x in 0..80u16 {
|
|
|
|
|
screen.push_str(buf[(x, y)].symbol());
|
|
|
|
|
}
|
|
|
|
|
screen.push('\n');
|
|
|
|
|
}
|
|
|
|
|
assert!(
|
|
|
|
|
screen.contains("onionwire:v1:"),
|
|
|
|
|
"share screen missing invite prefix:\n{screen}"
|
|
|
|
|
);
|
|
|
|
|
for ch in ['█', '▀', '▄'] {
|
|
|
|
|
assert!(
|
|
|
|
|
!screen.contains(ch),
|
|
|
|
|
"share screen still has QR block {ch:?}:\n{screen}"
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|