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)
Sun, May 31, 12:39 PM
Unknown Object (File)
Sat, May 30, 5:52 PM
Unknown Object (File)
Fri, May 29, 2:44 PM
Unknown Object (File)
Thu, May 28, 9:33 PM
Unknown Object (File)
Mon, May 25, 6:58 PM
Unknown Object (File)
Apr 6 2026, 11:43 PM
Unknown Object (File)
Apr 5 2026, 6:38 PM
Unknown Object (File)
Mar 20 2026, 12:53 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