Page 1 of 1

make man command jump to correct place for busybox commands

Posted: Wed 24 Jan 2007, 11:11
by HairyWill
At the moment when you enter the command "man xxx" for a busybox command it always takes you to the top of the busybox page and then you have to scroll down to find your command.
busybox.htm already has anchors inserted for each command of the form "item_command".

All you have to do is edit /usr/bin/man and change line 46 (as of 2.12) to

Code: Select all

exec dillo file://usr/share/doc/busybox.htm#item_${1}
Hey presto no more scrolling needed.

BTW busybox.htm is not valid XHTML strict or even transitional. In fact it is not even valid XML. I presume the file is exactly what is supplied by the project.

For NetSurf as well

Posted: Wed 21 Nov 2007, 20:45
by Wosh
Great!

This also works with NetSurf even when it has formatting problems within the BusyBox Html-Page.

This little piece of code should be added to the default distribution!

Wosh