Sponsored Content
Operating Systems OS X (Apple) Changing OSX Terminal Man Page Colors Post 302387222 by tlarkin on Friday 15th of January 2010 01:19:06 AM
Old 01-15-2010
Here is a neat little trick I did to my ~/.bash_profile

Code:
function woman {
  tmpfile="/tmp/man ${*}.pdf"
  if [ \! -f "${tmpfile}" ]
  then
      man -t "${*}" | pstopdf -i -o "${tmpfile}"
  fi
  open "${tmpfile}"
}

now if you type 'woman' instead of 'man' it will export it to PDF...I posted this on my site and a guy posted his code that will export them to a tabbed page in safari, but I have not tested his script. It is in the comments section if you want to check it out.

Add PDF export of Man pages in OS X | tlarkin.com
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

changing the colors of nedit

I have only slight difference between remarks (gray) and code (black) using c and c++ how cani change remark to other color ? The option preferences/language mode/c++ doesn't help (0 Replies)
Discussion started by: eynkesef
0 Replies

2. UNIX for Advanced & Expert Users

Terminal colors

Hi, is there a way to change the colors used in ls --color=always? I tried to define LSCOLOR and CLICOLOR but it doesn't work! Bye... (2 Replies)
Discussion started by: TShirt
2 Replies

3. Solaris

Changing CDE FrontPanel Button Colors

OK so I've been trying to figure this out on and off for about two years on Solaris 8, and now I'm trying to do it in Solaris 10 (which seem to have identical resource structures for Dtwm.) I've created my own sleek, single row front panel with small custom icons, and smaller font so that it's... (1 Reply)
Discussion started by: insamniac
1 Replies

4. UNIX for Advanced & Expert Users

Changing colors for compiler errors/warnings

Hi, I am using GNU unix. And running a bash shell. Can anyone please tell me what is the command for changing the color of the compiler error/warning messages on the console. I think it is in .bashrc and do not know how. Thanks Pink (0 Replies)
Discussion started by: pink01
0 Replies

5. UNIX for Dummies Questions & Answers

Changing colors for compiler errors/warnings

Hi, I am using GNU unix. And running a bash shell. Can anyone please tell me what is the command for changing the color of the compiler error/warning messages on the console. I think it is in .bashrc and do not know how. Thanks Pink (1 Reply)
Discussion started by: pink01
1 Replies

6. UNIX for Dummies Questions & Answers

Changing Man page output

I've been asked to come up with a command to display a man page that will continuously scrol (i.e. not hitting space/enter)l. Is there a way do this? I'm stumped. Thank you for your help. (8 Replies)
Discussion started by: Opy99
8 Replies

7. UNIX and Linux Applications

Xfce terminal: colors

I have Xfce terminal emulator installed on most machines. The Xubuntu version has color coding that distinguishes directories (purple) from files (white or green) for instance. The terminals on non-Linux machines do not have this color coding. Where can this color option be set? Is there a... (6 Replies)
Discussion started by: figaro
6 Replies

8. OS X (Apple)

Osx terminal

hi all, first off thesis my first post so if i am not in the right forum, i apologize. i'm an absolute newbie to unix. i've been reading my books and studying my crib sheets etc. but... :/ i want to accomplish two things. 1. search and remove duplicate files i.e.. audio, doc alias etc.... (1 Reply)
Discussion started by: monkeyhateclean
1 Replies

9. OS X (Apple)

A new OSX 10.12.x terminal from the command line.

Hi guys and gals... After much searching on the good ol' internet I could find nothing, so this is the result. ALthough many people seem to have asked this question no-one seems to have a solution so here we go. I need for AudioScope.sh, 'xterm' to run a second program for some of its... (2 Replies)
Discussion started by: wisecracker
2 Replies

10. What is on Your Mind?

OSX 10.14 Mojave Commands - 13K+ Total Man Pages in Repository

Just added OSX 10.14 Mojave Commands (currently over 13K pages in the mojave repo) to our man page repository: OSX 10.14 Mojave Commands We need to update all the man pages to the most current versions, so please contribute man page sets to your favorite OS environment (tar.gz with os and... (3 Replies)
Discussion started by: Neo
3 Replies
yodlmanpage(7)						    Your Own Document Language						    yodlmanpage(7)

NAME
yodlmanpage - Yodl's `manpage' document type SYNOPSIS
The manpage document type was specifically implemented to write Unix-style manual pages. Other Yodl document formats, such as article, report and book are documented in the Yodl guide and in the manpage for yodlmacros. DESCRIPTION
This manual page briefly describes the manpage document type of the YOLD document language. This document type is specific enough that it warrants a separate manpage. manpage documents do not use the `standard' sectioning commands (e.g., sect() and subsect()), but have specific manpage...() macros. You can however use (and are encouraged to..) other `normal' macros, such as description(...) or itemization(...) for lists, or bf() for bold- face and em() for emphasis. As for fonts, the following is suggested: o Use em(text) when text is a variable, or a placeholder, etc.. o Use bf(text) when text is literal, such as a command, a filename, a directory. Each manpage document in Yodl must be organized as follows: o manpage(name) (section) (date) (package) (source): This is the preamble of the document. It states whatever the page describes, the section where it belongs, the release date, the package that it belongs to, and the source of the package. The section number should be (according to the Linux manpage on man): 1 for commands, 2 for system calls, 3 for library calls, 4 for special files, 5 for file formats, 6 for games, 7 for macro packages and conventions, 8 for system management commands, and 9 for other special sub- jects (e.g., kernel commands). o manpagename(name) (short description): The name is again whatever is described, the short description is what e.g., the whatis database uses for descriptions. o manpagesynopsis(): a very short `usage' information or similar. Keep this section short, e.g., a line with all program options is acceptable but without descriptions (these come later). o manpagedescription(): the purpose of the program and such. This is also the place to document the workings. o manpageoptions(): This is the place to document e.g. the flags that are stated in the manpagesynopsis(). This section is optional, but when present, must appear at this place. o manpagefiles(): relevant files are described in this section. o manpageseealso(): this section lists related manual pages. o manpagediagnostics(): Error conditions, error messages, etc.. o manpagebugs(): This is where known bugs are described. This section is optional. o manpageauthor(): stating the author and/or the maintainer. o manpagesection(NAME): This macro starts a generic, non-required section. E.g., you might want a manpagesection(EXAMPLES) in your document. As a typographic suggestion, use upper case for the NAME argument for consistency reasons. SEE ALSO
yodlstriproff(1), yodl(1), yodlbuiltins(7), yodlconverters(1), yodlletter(7), yodlmacros(7), yodlpost(1), yodlverbinsert(1). BUGS
- AUTHOR
Frank B. Brokken (f.b.brokken@rug.nl), yodl_3.00.0.tar.gz 1996-2010 yodlmanpage(7)
All times are GMT -4. The time now is 05:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy