Howdy,
I used to have a custom .dlalogrc that changed the ports config dialog colours, but I get the feeling that /usr/bin/dialog isn't used any more by ports (maybe?).
The man page for ports-mgmt/portconfig tells me I can use NO_COLOR=1 which is an improvement (for me), but is there a way to keep the dialog colourised but with colours of my choosing?
Thanks,
Scott
It looks like portconfig uses bsddialog(3), which has some support for themes, but quick glance over man pages doesn't look like there is easy method to pass user preferences to the underlying library.
The first (oldest) default of ports-mgmt/portconfig when it landed on ports tree was much worse than current one, at least for cataract eyeballs. Current one is fine.
And in my humble opinion, ports-mgmt/portconfig should be merged into base like in-base bsddialog(1) in the future. Re-adding theme (color scheme) functionality with more flexible way (was just to select from a few candidates) would be nice before the merge happenes.
That's great, for you. Accessibility is about catering for others, whose needs one may not be able to anticipate. It's a failing that an updated UI in FreeBSD that many users interact with went backwards with regard to customisability. Do we have a standards document in the project that prescribes minimum functionality for essential UIs?
Exactly. So customizability is important.
And in this aspect, screen reader for vt/sc is wanted (I've lost track of it, though). But for (n)curses things, it needs to ignore ESC sequences properly. And supports for CJK languages should be quite difficult.
I don't read the forum often. You can write me an email at asiciliano@ for suggestions and feature requests.
I've abandoned my open source projects for months (health and family issues ?, that's life). But now I'm starting to work again, I hope to reply to email and to add new features quickly.
The man page for ports-mgmt/portconfig tells me I can use NO_COLOR=1 which is an improvement (for me), but is there a way to keep the dialog colourised but with colours of my choosing?
Thanks,
Scott
It looks like portconfig uses bsddialog(3), which has some support for themes, but quick glance over man pages doesn't look like there is easy method to pass user preferences to the underlying library.
Yes, portconfig uses libbsdialog for TUI. The library has dynamic theming (colors are not hardcoded). Please refer to the "Theme" and "EXAMPLES" subsections in the manual bsddialog(3)-15.0. Briefly the library provides 3 default themes: BSDDIALOG_THEME_BLACKWHITE, BSDDIALOG_THEME_FLAT, BSDDIALOG_THEME_3D to set via bsddialog_set_default_theme(). Otherwise, bsddialog_set_theme() allows to set a custom struct bsddialg_theme.
The client-utilities of bsddialog(3) have to use the previous functions to provide theming features for users. For example bsddialog(1) provides env NO_COLOR, env BSDDIALOG_THEMEFILE <file>, --load-theme <file>, --save-theme <file>, and file $HOME/bsddialog.conf if exists.
OK, I' ll add some features also to portconfig to set themes.
Exactly. So customizability is important.
And in this aspect, screen reader for vt/sc is wanted (I've lost track of it, though). But for (n)curses things, it needs to ignore ESC sequences properly. And supports for CJK languages should be quite difficult.
Possibly I'm overlooking something, but unfortunately, there's none, as far as I know.
For any question you can contact me or (for public discussion) Accessibility mailing lists. For portconfig we have also a Wiki Page, I'll add this post in the "Feature requests" table.
Please let me know any problems and/or tips.
Alfonso
Thanks alfonsosiciliano, these enhancements are great additions and make the ports experience much more user friendly. I only recently installed a 14.3R and have been toying with the colour schemes. I can finally read the highlighted text!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.