Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 20 Nov 2018, 07:45
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
make man command jump to correct place for busybox commands
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
HairyWill


Joined: 26 May 2006
Posts: 2946
Location: Southampton, UK

PostPosted: Wed 24 Jan 2007, 07:11    Post subject:  make man command jump to correct place for busybox commands  

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:
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: community website, screenshots, puplets, wiki, rss
Back to top
View user's profile Send private message 
Wosh


Joined: 09 Jul 2007
Posts: 60
Location: Nuremberg Germany

PostPosted: Wed 21 Nov 2007, 16:45    Post subject: For NetSurf as well  

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
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0340s ][ Queries: 11 (0.0051s) ][ GZIP on ]