On 2018-12-15, Mihai Popescu <mih...@gmail.com> wrote:

> I want to modify the char used for pkg_add (and other pkg_ suite)
> progress bar from "*" to "|" but i am unable to figure out where is
> the actual code for this. I managed to found /usr/sbin/pkg_add but
> there are another links in there, and perl for me is a no idea
> language.

Well, you need to understand that the code for the pkg tools is
mostly found in numerous Perl modules--the files in the OpenBSD
directory under src/usr.sbin/pkg_add.

>From there it's a reasonable guess that this asterisk probably shows
up as some sort of string or character constant, i.e., something
like '*' or "*", so with the proper shell quoting you run a recursive
grep for this... Bingo, there it is.

-- 
Christian "naddy" Weisgerber                          na...@mips.inka.de

Reply via email to