{"id":16820406,"url":"https://github.com/op/whiplash","last_synced_at":"2026-01-28T21:32:59.521Z","repository":{"id":136988281,"uuid":"183831057","full_name":"op/whiplash","owner":"op","description":"whiplash makes your whiptail apparent by mixing up some colors","archived":false,"fork":false,"pushed_at":"2019-04-28T00:26:03.000Z","size":199,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T11:37:36.873Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/op.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-27T23:30:58.000Z","updated_at":"2024-12-12T15:47:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"e3da3cde-c4f6-4c40-9502-707feb9cf142","html_url":"https://github.com/op/whiplash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/op/whiplash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/op%2Fwhiplash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/op%2Fwhiplash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/op%2Fwhiplash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/op%2Fwhiplash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/op","download_url":"https://codeload.github.com/op/whiplash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/op%2Fwhiplash/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28852837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T15:15:36.453Z","status":"ssl_error","status_checked_at":"2026-01-28T15:15:13.020Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T10:56:38.755Z","updated_at":"2026-01-28T21:32:59.507Z","avatar_url":"https://github.com/op.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# whiplash\n\nwhiplash makes your whiptail apparent by mixing up some colors. This project\ncontains color schemes to alter the default representation of applications\nbased on Newt such as whiptail.\n\n## Overview\n\n[Newt] is a programming library for color text, widget based user interfaces.\nIt comes with *whiptail*, a replacement for [dialog]. *whiptail* is used,\namong other, as a frontend to Debian APT and its [debconf] tool.\n\n## Examples\n\nHere follows some examples.\n\n### Lamenting\n\nLamenting is a darker theme with some green and magenta.\n\n[![lamenting gauge](media/lamenting-gauge-thumb.png)](media/lamenting-gauge.png)\n[![lamenting checklist](media/lamenting-checklist-thumb.png)](media/lamenting-checklist.png)\n\n### Scorched\n\nScorched is a dark theme with red.\n\n[![scorched gauge](media/scorched-gauge-thumb.png)](media/scorched-gauge.png)\n[![scorched checklist](media/scorched-checklist-thumb.png)](media/scorched-checklist.png)\n\n### default\n\nThis is the default for illustrative purposes.\n\n[![default gauge](media/default-gauge-thumb.png)](media/default-gauge.png)\n[![default checklist](media/default-checklist-thumb.png)](media/default-checklist.png)\n\n## Usage\n\nCopy the color scheme and setup your environment.\n\n```\ngit clone https://github.com/op/whiplash ~/.config/whiplash\nexport NEWT_COLORS_FILE=~/.config/whiplash/lamenting\n```\n\nTo setup with debconf (select dialog);\n\n```\nsudo visudo /etc/sudoers.d/newt\nDefaults env_keep += \"NEWT_COLORS_FILE\"\nsudo dpkg-reconfigure debconf\n```\n\nIf you want to try it out;\n\n```\ncd ~/.config/whiplash\nNEWT_COLORS_FILE=lamenting ./example/whiptail\nNEWT_COLORS_FILE=scorched ./example/msgbox 'No Pasaran'\n```\n\n## Background\n\nHad to write this down. My journey with [debconf] frontends.\n\nFor months, all dialogs displayed by [debconf] were almost unreadable on my\nsystem. Not sure if the root cause is my X setup, changing to Alacritty or\nupgrading to Debian buster.\n\n1. *readline*. This is the classic, but has it changed? Doesn't look familiar.\n\t What's up with the underlined text and things? And, where did the default\n\t choices go?\n\n2. *Editor*. Tried for a while. Felt annoying.\n\n3. *Dialog*. Colors have changed. Super hard to read. Whatever. Was stuck with\n   this for a while until today.\n\n4. *GNOME*. Tried but the default window sizes are full screen. Looks horrible in\n\t xmonad unless they are kept in tiled mode. I also don't use a mouse you\n\t know, so this adventure was kept short.\n\n5. Tried `apt-cache search debconf` if there's any frontend I've missed. Check\n\t `apt-cache show debconf` and finds `whiptail`. This looks familiar!\n\n6. Replace whiptail with readline. Hello 1990. Flashbacks to the days of `make\n\t menuconfig`.\n\n7. Skim through `debconf(7)`. Bingo. If you add `libterm-readline-gnu-perl`,\n\t you get default values. Wasn't that easy?\n\n8. Decided to look into _whiptail_ again. Bingo. Ends up in [newt.c] from\n\t [stackoverflow]. Look at that. Colors can be customised. It uses\n\t [SLtt_set_color]. Slang. Documentation is not very helpful.\n\n\t \u003e ??.\n\n9. `NEWT_MONO` is quite nice. However, I ended up with two themes.\n\nPS. I do love debconf. (Just found out that it is being deprecated in favour of\n[cdebconf]. Haha!)\n\n[Newt]: https://pagure.io/newt/\n[dialog]: http://invisible-island.net/dialog/dialog.html\n[newt.c]: https://pagure.io/newt/blob/master/f/newt.c\n[stackoverflow]: https://stackoverflow.com/a/46632188\n[Sltt_set_color]: http://www.jedsoft.org/slang/doc/html/cref-12.html#ss12.52\n[debconf]: https://en.wikipedia.org/wiki/debconf\n[cdebconf]: https://packages.debian.org/cdebconf\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fop%2Fwhiplash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fop%2Fwhiplash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fop%2Fwhiplash/lists"}