John T. Wodder II
John T. Wodder II
## Problem Currently, when a `Line` or similar text widget is rendered inside a too-narrow area, the overflow text is simply not rendered. I would like to be able to...
## Problem Sometimes, you may find yourself working with `Position` values that are relative to the top-left corner of some `Rect` that may or may not be positioned at the...
The following code: ```rust use crossterm::event::{read, KeyCode}; use ratatui::{ layout::Rect, text::Span, widgets::{Scrollbar, ScrollbarOrientation, ScrollbarState, StatefulWidget, Widget}, DefaultTerminal, Frame, }; fn main() -> std::io::Result { let mut args = std::env::args().skip(1); let...
When running the following code under pytest 9.0.1 using smtpdfix 0.5.3: ```python from smtplib import SMTP_SSL def test_sendmail(smtpd): smtpd.config.use_ssl = True from_addr = "[email protected]" to_addrs = "[email protected]" msg = (...
Using `&'static str`s for error is bad API design, as it makes it hard for calling code to determine what type of error has happened without becoming dependent on exact...
The following code uses `fontdue` to create a PNG showing a grid of all characters in a given font (assumed to be monospace) up through U+01FF: ```rust use clap::Parser; use...
If `cargo-sort` (without arguments) is run in a workspace, the `-w`/`--workspace` option needs to be passed in order to sort the `Cargo.toml` files for all packages; in particular, users of...
Consider the following code: ```python from abc import ABC, abstractmethod import mailbox class MailboxFactory(ABC): @abstractmethod def open(self) -> mailbox.Mailbox: ... class MboxFactory(MailboxFactory): def __init__(self, path: str) -> None: self.path =...