make man command jump to correct place for busybox commands

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
User avatar
HairyWill
Posts: 2928
Joined: Fri 26 May 2006, 23:29
Location: Southampton, UK

make man command jump to correct place for busybox commands

#1 Post 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.
Will
contribute: [url=http://www.puppylinux.org]community website[/url], [url=http://tinyurl.com/6c3nm6]screenshots[/url], [url=http://tinyurl.com/6j2gbz]puplets[/url], [url=http://tinyurl.com/57gykn]wiki[/url], [url=http://tinyurl.com/5dgr83]rss[/url]

User avatar
Wosh
Posts: 60
Joined: Mon 09 Jul 2007, 19:20
Location: Nuremberg Germany

For NetSurf as well

#2 Post 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

Post Reply