Page MenuHomeFreeBSD

bsddialog(1): Improve --hline (help subtitle)
ClosedPublic

Authored by asiciliano on Apr 3 2022, 1:36 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 7, 8:45 PM
Unknown Object (File)
Dec 2 2024, 7:27 AM
Unknown Object (File)
Nov 26 2024, 11:50 PM
Unknown Object (File)
Nov 18 2024, 12:15 AM
Unknown Object (File)
Nov 14 2024, 8:04 PM
Unknown Object (File)
Nov 14 2024, 7:47 PM
Unknown Object (File)
Oct 29 2024, 3:47 PM
Unknown Object (File)
Oct 7 2024, 12:51 AM
Subscribers

Details

Summary

Improvement for bsdconfig(8): avoid to draw delimiters (or spaces) on the bottom line if --hline is an empty string.

Test Plan

Before:

% bsddialog --hline "" --yesno test 0 0

┌───────────────────┐
│ test              │  
├───────────────────┤  
│[ Yes  ]   [  No  ]│  
└────────  ─────────┘

The problem is on the bottom line.

After the review
% bsddialog --hline "" --yesno test 0 0

┌───────────────────┐
│ test              │  
├───────────────────┤  
│[ Yes  ]   [  No  ]│  
└───────────────────┘

All right.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped