mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 04:36:45 +01:00
transport master
This commit is contained in:
parent
185c6b5b34
commit
be2c2df92b
4 changed files with 85 additions and 62 deletions
|
|
@ -25,8 +25,8 @@ pub fn draw_box_styled (buffer: &mut Buffer, area: Rect, style: Option<Style>) -
|
|||
let bottom = format!("╰{}╯", "─".repeat((area.width - 2).into()));
|
||||
buffer.set_string(area.x, area.y, top, style);
|
||||
for y in (area.y + 1)..(area.y + area.height - 1) {
|
||||
buffer.set_string(area.x, y, format!("┇"), style);
|
||||
buffer.set_string(area.x + area.width - 1, y, format!("┇"), style);
|
||||
buffer.set_string(area.x, y, format!("│"), style);
|
||||
buffer.set_string(area.x + area.width - 1, y, format!("│"), style);
|
||||
}
|
||||
buffer.set_string(area.x, area.y + area.height - 1, bottom, style);
|
||||
area
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue