Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Maemo: Developers

Command Line Club - please join / interactive man pages project (dialog + shell)

 

 

Maemo developers RSS feed   Index | Next | Previous | View Threaded


dariusjack2006 at yahoo

Jul 19, 2008, 6:12 AM

Post #1 of 2 (238 views)
Permalink
Command Line Club - please join / interactive man pages project (dialog + shell)

Command Line Club

Hi,

as I use my 770 as mobile Linux station
would welcome your advice on how to install interactive man pages on 770,
not exactly htmlized version by Lynx but something more sophisticated.
Man pages syntax parser for each Linux command, showing valid options, valid parameters and valid syntax.

My choice is dialog + shell scripts . Source is Linux man pages.
One example to rewrite is Date help

Usage: date [OPTION]... [MMDDhhmm[[CC]YY[.ss]] [+FORMAT]

to be given man pages notation

what options
what parameters
line by line
completed by valid syntax examples.

Project is intended as another Linux for Dummies , for high school students revitalizing 770 devices.

Please let me know your opinion.
Thanks

Darius

Send instant messages to your online friends http://uk.messenger.yahoo.com
_______________________________________________
maemo-developers mailing list
maemo-developers[at]maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


advax at triumf

Jul 21, 2008, 5:15 PM

Post #2 of 2 (191 views)
Permalink
Re: Command Line Club - please join / interactive man pages project (dialog + shell) [In reply to]

On Sat, 19 Jul 2008, Darius Jack wrote:

> would welcome your advice on how to install interactive man pages on 770,

I wrote a trivial thing called "bzman", which is basically just:
/usr/bin/man =
#!/bin/sh
LESSOPEN="|bzip2 -cdfq %s"; export LESSOPEN
exec less -is "/usr/local/bzman/$1"

Since my pager of choice is "less" when running "man" on my desktop,
I get something that behaves the same (run up a manpage, search for
something). It can't handle entries in multiple sections, though ("man 1
sleep" vs. "man 3 sleep")

I chose bzip compression as it's slightly better than gzip, but perhaps
it wasn't worth the trouble - "disk" space is't really that tight on the
tablet for a few kb of manpages, and one can always use the SD card.

http://andrew.triumf.ca/N810/repository/dists/chinook/user/binary-armel/bzman-0.5.deb


--
Andrew Daviel, TRIUMF, Canada
_______________________________________________
maemo-developers mailing list
maemo-developers[at]maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

Maemo developers RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.