Hyperlinks in Terminal man pages

Several third party applications (eg ManOpen) put hyperlinks in man pages. Often this is done on the fly using the same man page source as the Terminal.
Does Apple do this with the Terminal or any other applications which use local (ie not web) man pages?
My groff_mdoc man page says:
      .Lk To be written
but a more informative description at http://www.daemon-systems.org/man/mdoc.7.html says:
      .Lk link (for conversion to HTML). Usage: .Lk <href> [anchor-text]
I suspect Lk has not been widely used and that third party applications probably use the existing Xr tags about which my groff_mdoc man page says:
Manual Page Cross References
      The '.Xr' macro expects the first argument to be a manual page name. The optional second argument, if a string (defining the manual section), is put into parentheses.
      Usage: .Xr ⟨man page name⟩ [⟨section⟩] ...
        .Xr mdoc        mdoc
        .Xr mdoc ,      mdoc,
        .Xr mdoc 7      mdoc(7)
        .Xr xinit 1x ;  xinit(1x);
      The default width is 10n.
Is it possible to get the Terminal to use these existing Xr tags as hyperlinks?

Sorry, I didn't peruse that link. On my machine, man:<commmand> works in Safari.
Thanks for that I had misread the instructions and tried man: ls and man ls (as per terminal) rather than the correct man:ls
That's incorrect. This example is from the chmod manpage:
+     The -H, -L and -P options are ignored unless the -R option is specified. In addition, these options override each other and the command's+
+     actions are determined by the last one specified.+
In my terminal I get the following:
Case 1 - Terminal/Prefences/Window Columns set to 80
The -H, -L and -P options are ignored unless the -R option is specified.
In addition, these options override each other and the command's actions
are determined by the last one specified.
Case 2 - Terminal/Prefences/Window Columns set to 120
The -H, -L and -P options are ignored unless the -R option is specified. In addition, these options
override each other and the command's actions are determined by the last one specified.
For these tests I closed Preferences and then opened a new Terminal window. Manually widening the windows did not increase text width further but narrowing them resulted in an untidy soft text wrap a character at a time rather than the normal word at a time.
Am I the only one with a Terminal that does this or does it work for others?

Similar Messages

  • Convert terminal man page to pdf/export man page as pdf

    Hi there,
    Would anyone of you know how to export a man page as a pdf?
    -jns

    I've read several books on UNIX and the bash shell, and read the sections of several MacOSX books on UNIX. I started dabbling way way back, used Linux a bit on a rebuilt 486, installed some UNIX based stuff on pre-OS X Macs (there was Yellow Dog, and something else, whose name escapes me, I used on my 7100). Back then it was best to buy books. These days you can find anything you want to know along those lines on the internet. An excellent place to start:
    http://www.osxfaq.com/Tutorials/LearningCenter/index.ws
    Whenever I discover/see a useful command I add it to my "cheat sheet" along with an example and an explanation of it. I've organized my "cheat sheet" into categories that make sense to me, so that I can quickly find what I want.
    A really handy helpful application for this sort of thing is Clix from Rixstep:
    http://rixstep.com/4/0/clix/index.shtml
    It has various lists of commands, categories and explanations. Truly great software, and it's free.
    Francine
    Francine
    Schwieder

  • No scrolling when viewing man pages with Gnome terminal?

    Hi all,
    I have just installed Oracle Solaris 11 on x86. For a long time I've used Solaris 9 on SPARC. I like the new OS, but I'm having a problem viewing man pages with Gnome terminal. When I view a long man page, e.g., "man newfs", I don't get a functional scroll bar on the right hand side of the window. And although the space bar works to advance the page, when I reach the end, it doesn't return to the command prompt. It just beeps, prints "END", and I can only exit by closing the window. Can anyone tell me how to fix this? Suggestions would be much appreciated.
    Many thanks,
    Chris Tidy

    It does sound like you're using "less" instead of more. When you see the "(END)" prompt you can simply type "q" and it will exit back to the command line prompt making it unnecessary to close the window. See the "less" manual page for more detail on the less command. Under Solaris 9 the paging was done with the "more" command. If you set the PAGER environment variiable to "more" the man page will use more and revert to the behavior you'd be used to with Solaris 9. Less erases the text you've already read when you type that final "q" which is a behavior I don't like. I didn't bother to determine if there is a way to fix that with less, I just went back to more. The choice between "more" and "less" is a personal preference.

  • Browse man pages in Lion's Terminal

    Just read about this, thought it was worth sharing:
    Browse man pages in Lion's Terminal

    Also  key combination:
    control-option-command-/
    shift-control-command-?

  • Reading man pages in macvim?

    Hi,
    I would like to read man pages in macvim. In a macvim window, I tried :!man perltoot, but I got this:
    WARNING: terminal is not fully functional
    (press Return)
    After hitting return, the man page displayed, but it was in white text (v. vivid chalk), and navigating up and down was herky, jerky.
    I found the following shell script that purportedly will display colorized man pages in macvim, but it doesn't work for me:
    function tman {
    man "${1}" | col -b | /usr/local/bin/gview - 1>/dev/null 2>&1
    I used find to search my whole hard drive for gview, but I don't have that anywhere.
    Message was edited by: 7stud
    Message was edited by: 7stud

    Thanks for the responses.
    runtime! ftplugin/man.vim
    :Man perltoot
    That causes an annoying split screen to appear. I found I could get rid of the empty portion by clicking my mouse in the empty split screen, and then hitting <esc>:quit.
    Message was edited by: 7stud

  • Man Pages for OS X Tiger

    Does anyone know where I can download the man pages ? My iMac went to the "grey screen with endless spinning gear of death" and I want to download my files to an external drive (by firewire) but my Mac will not recognize the external drive as I am in the Install services via Disk 1. I can see my files via terminal and I want to be able to manually set up the external drive to I can transfer then I can wipe out my HD and start over.
    Anyone have any suggestions and or know of where I can get the pages ? Thx !!!

    OK. Let me make sure I am understanding this correctly:
    - you have a problem with the mac such that you cannot boot
    - you can boot from the install disk
    - you have an external FW drive which you wish to transfer files to before reinstalling
    Questions:
    - have you used the external drive before or is it new?
    - when you say you are "at the utilities menu", do you mean that you've opened Disk Utility and you can see the external drive on the left?
    -> if so, select it and then choose the "Erase" tab. Select a format and give the disk a name. It is not a bad idea to choose the "security options" and opt to write zeros (once) to the disk. Then choose "erase". This will erase everything on the disk so only do this if the disk is new or you don't need anything on the disk. If you aren't sure which format to choose from the drop-down menu, "Mac OS Extended (Journaled)" is a good choice unless you need to use the disk with Windows as well. If you chose the writing zeros option, find something to do as it will take a while depending on the size of the disk. Try mounting the new volume now - that is, select the volume on the left (it will have your chosen name) and choose mount from the menu or toolbar.
    - how are you thinking of transferring your files? If the drive is suitable, you could install OS X on the external drive, boot from that and retrieve the files from your internal drive that way. Or were you thinking of something else?
    Manpages:
    - are you using Terminal from the Utilities menu on the install disk? I think you can access the man pages that way. I don't know if you can do so directly, though you can try, but you may be able to access them from hour hard drive by specifying a complete path e.g. man /Volumes/Macintosh\ HD/usr/share/man/man1/kill.1.
    Have you tried repairing your internal drive using Disk Utility?
    - cfr

  • Thr_create() returns -1 which isn't specified in the man page. What is -1?

    Hello,
    I'm for the first time experimenting with Solaris threads as I'm porting an AIX app. over to Solaris.
    Anyhow, I have a sample program that creates a simple thread. For some reason, the return value of of the initial thr_create is -1, which isn't specified in the man page for thr_create. The man page lists the following return values, non of which are -1:
    RETURN VALUES
    Zero indicates a successful return and a non-zero value
    indicates an error.
    ERRORS
    If any of the following conditions occur, these functions
    fail and return the corresponding value:
    EAGAIN The system-imposed limit on the total number
    of threads in a process has been exceeded or
    some system resource has been exceeded (for
    example, too many LWPs were created).
    EINVAL The value specified by attr is invalid.
    If any of the following conditions are detected,
    pthread_create() fails and returns the corresponding value:
    ENOMEM Not enough memory was available to create the
    new thread.
    If any of the following conditions are detected,
    thr_create() fails and returns the corresponding value:
    EINVAL o stack_base is not NULL and stack_size is
    less than the value returned by
    thr_min_stack(3T).
    o stack_base is NULL and stack_size is not
    zero and is less than the value returned by
    thr_min_stack(3T).
    However, I don't see a -1 there and therefore, don't know what this means.
    Here is the simple code that I wrote for this experiment as well as the output. It doesn't get too far into the program before exiting - I've bolded where it exits:
    #define _REENTRANT
    #include <stdio.h>
    #include <thread.h>
    #include <errno.h>
    /* Function prototypes for thread routines */
    void sub_a(void );
    void sub_b(void );
    void sub_c(void );
    void sub_d(void );
    void sub_e(void );
    void sub_f(void );
    thread_t thr_a, thr_b, thr_c;
    void main()
    thread_t main_thr;
    int rc = 0;
    main_thr = thr_self();
    printf("Main thread = %d\n", main_thr);
    if (rc = thr_create(NULL, 0, sub_b, NULL, THR_NEW_LWP, &thr_b))
    printf("\n rc = %d",rc);
    switch(rc)
    case EAGAIN: printf("This one1");
    break;
    case EINVAL: printf("This one2");
    break;
    case ENOMEM: printf("This one3");
    break;
    default: printf("rc = %d");
    break;
    fprintf(stderr,"Can't create thr_b\n"),
    * exit(1); *
    /* if (thr_create(NULL, 0, sub_a, (void *)thr_b, THR_NEW_LWP, &thr_a))
    fprintf(stderr,"Can't create thr_a\n"), exit(1); */
    if (thr_create(NULL, 0, sub_c, (void *)main_thr, THR_NEW_LWP, &thr_c))
    fprintf(stderr,"Can't create thr_c\n"), exit(1);
    printf("Main Created threads A:%d B:%d C:%d\n", thr_a, thr_b, thr_c);
    printf("Main Thread exiting...\n");
    thr_exit((void *)main_thr);
    void sub_a(void arg)
    thread_t thr_b = (thread_t) arg;
    thread_t thr_d;
    int i;
    printf("A: In thread A...\n");
    if (thr_create(NULL, 0, sub_d, (void *)thr_b, THR_NEW_LWP, &thr_d))
    fprintf(stderr, "Can't create thr_d\n"), exit(1);
    printf("A: Created thread D:%d\n", thr_d);
    /* process
    for (i=0;i<1000000*(int)thr_self();i++);
    printf("A: Thread exiting...\n");
    thr_exit((void *)77);
    void * sub_b(void *arg)
    int i;
    printf("B: In thread B...\n");
    /* process
    for (i=0;i<1000000*(int)thr_self();i++);
    printf("B: Thread exiting...\n");
    thr_exit((void *)66);
    void * sub_c(void *arg)
    void *status;
    int i;
    thread_t main_thr, ret_thr;
    main_thr = (thread_t)arg;
    printf("C: In thread C...\n");
    if (thr_create(NULL, 0, sub_f, (void *)0, THR_BOUND|THR_DAEMON, NULL))
    fprintf(stderr, "Can't create thr_f\n"), exit(1);
    printf("C: Join main thread\n");
    if (thr_join(main_thr,(thread_t *)&ret_thr, &status))
    fprintf(stderr, "thr_join Error\n"), exit(1);
    printf("C: Main thread (%d) returned thread (%d) w/status %d\n", main_thr, ret_thr, (int) status);
    /* process
    for (i=0;i<1000000*(int)thr_self();i++);
    printf("C: Thread exiting...\n");
    thr_exit((void *)88);
    void * sub_d(void *arg)
    thread_t thr_b = (thread_t) arg;
    int i;
    thread_t thr_e, ret_thr;
    void *status;
    printf("D: In thread D...\n");
    if (thr_create(NULL, 0, sub_e, NULL, THR_NEW_LWP, &thr_e))
    fprintf(stderr,"Can't create thr_e\n"), exit(1);
    printf("D: Created thread E:%d\n", thr_e);
    printf("D: Continue B thread = %d\n", thr_b);
    thr_continue(thr_b);
    printf("D: Join E thread\n");
    if(thr_join(thr_e,(thread_t *)&ret_thr, &status))
    fprintf(stderr,"thr_join Error\n"), exit(1);
    printf("D: E thread (%d) returned thread (%d) w/status %d\n", thr_e,
    ret_thr, (int) status);
    /* process
    for (i=0;i<1000000*(int)thr_self();i++);
    printf("D: Thread exiting...\n");
    thr_exit((void *)55);
    void * sub_e(void *arg)
    int i;
    thread_t ret_thr;
    void *status;
    printf("E: In thread E...\n");
    printf("E: Join A thread\n");
    if(thr_join(thr_a,(thread_t *)&ret_thr, &status))
    fprintf(stderr,"thr_join Error\n"), exit(1);
    printf("E: A thread (%d) returned thread (%d) w/status %d\n", ret_thr, ret_thr, (int) status);
    printf("E: Join B thread\n");
    if(thr_join(thr_b,(thread_t *)&ret_thr, &status))
    fprintf(stderr,"thr_join Error\n"), exit(1);
    printf("E: B thread (%d) returned thread (%d) w/status %d\n", thr_b, ret_thr, (int) status);
    printf("E: Join C thread\n");
    if(thr_join(thr_c,(thread_t *)&ret_thr, &status))
    fprintf(stderr,"thr_join Error\n"), exit(1);
    printf("E: C thread (%d) returned thread (%d) w/status %d\n", thr_c, ret_thr, (int) status);
    for (i=0;i<1000000*(int)thr_self();i++);
    printf("E: Thread exiting...\n");
    thr_exit((void *)44);
    void sub_f(void arg)
    int i;
    printf("F: In thread F...\n");
    while (1) {
    for (i=0;i<10000000;i++);
    printf("F: Thread F is still running...\n");
    OUTPUT:
    # /emc/smithr15/solthread
    Main thread = 1
    rc = -1Can't create thr_b
    rc = -1#
    Any ideas as to what -1 indicates and how to solve this?
    Thanks for your response,
    dedham_ma_man

    ok, my bad. I wasn't linking in the -lthread library.
    Thanks anyway.

  • Can we update the man pages for "dynamic_pager"?

    The configuration file is listed as, /Library/Preferences/com.apple.virtualMemory.plist but from what I understand, it is located in /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist.

    Send Apple feedback about it, and they will likely update the man page: http://www.apple.com/feedback/macosx.html
    Alternatively you can edit the man page file for the dynamic_pager itself. It is located here: /usr/share/man/man8/dynamic_pager.8

  • My location bar, tool bar (file, edit, tools, bookmarks, help) disappeared and cannot be restored. I have no back button, home button etc. the top of the screen is just an empty blue bar. Internet still works if I click on a hyperlink on the main page.

    My location bar, tool bar (file, edit, tools, bookmarks, help) all disappeared and cannot be restored. I have no back button, home button etc. the top of the screen is just an empty blue bar. Internet still works if I click on a hyperlink on the main page.
    The problem started when I turned on the computer this morning. I tried to install Mozilla 4 from your website and that installed but I still have nothing on the top.

    It may be due to Firebug. Seeing as how you're a web developer, it's very possible you have this installed. The latest version, 1.7X a10, appears to cause everything you described. I downgraded to "a8" and that seems to have fixed everything.
    I also recreated a profile from scratch before trying this out, so I can't guarantee it's definitely Firebug.
    Similar issue: https://support.mozilla.com/en-US/questions/783078
    edit: If you go to the Firebug forums, you'll see this is now a known problem. http://code.google.com/p/fbug/issues/detail?id=4012 for the issue tracker.

  • Hyperlink (or Button) in Page Footer on Page 0

    (This message was inadvertantly posted twice. Please disregard this instance)
    I have created an application in HTML DB 2.0 with a Page 0 for my Page Headers & Footers. I am attempting to add either a hyperlink or button to my Page Footer on Page 0 so that the button, or hyperlink, appears on each page. This functionality is essentially a site disclaimer which I want accessible from every page in an inconspicuous fashion. I have not been able to find a straight-forward example or solution. Thanks.
    Message was edited by: MovingTarget
    MovingTarget

    Hi Rob,
    see "Understanding the URL syntax" at http://download-uk.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28550/concept.htm#BEIFCDGF
    That should give you the necessary info you need.
    Patrick
    Check out my APEX-blog: http://inside-apex.blogspot.com
    Check out the ApexLib Framework: http://apexlib.sourceforge.net

  • I have a godaddy website with a welcome page- I need help adding a few additional pages with a hyperlink to my welcome page.

    I need help attaching a few hyperlinks my godaddy welcome page. I have 2 more ipages articles, I also converted them to pdf. Godaddy only helped (last year) with the 1st article.  I do not know how to attach a hyperlink to the artlcles and add the hyperlinks to my welcome page.

    The program is called Pages not iPages. Just let us know if you do not speak English and what language you do speak so we can adjust for that.
    The issues are to do with your web page not with Pages.
    I think you are asking how to link from your web page to your pdf articles. You must first copy those pdfs to your web server, or some other web location, and then provide html links on your welcome page to those pdf files.
    The pdfs themselves may contain links to other locations but I can not see that that is what you are asking for.
    Nor to what those links would be to.
    From your heading I think you may have confused the name of Pages, the word processing program, with web pages which are two different things.
    Peter

  • Hi, I'm making hyperlinks. They work for the main page of the webpage, but when I'm trying to redirect the hyperlink to a "sub page" of the webpage it is still going to the main page. (allthough I'm pasting the complete url address)

    Hi, I'm making hyperlinks. They work for the main page of the webpage, but when I'm trying to redirect the hyperlink to a "sub page" of the webpage it is still going to the main page. (allthough I'm pasting the complete url address)

    Hi! first of all, thank you so much for your help.
    I don't know about that panel you are talking about.
    what I do is RIGHT CLICK, INTERACTIVE, NEW HYPERLINK, and a window pops up, where I paste the address (images).
    Where says URL I paste the complete address that the "sub page" gives me.
    Is that correct? (for the main page of the wabepage works correctly)
    thanks!!!

  • How to create a hyperlink to a specific page in a pdf

    How can I create a hyperlink to a specific page in a pdf, that is saved on a local drive? If anybody knows the answer, please email me back at [removed]
    Your help will be greatly appreciated.

    You need the original Adobe Acrobat to edit PDF files. The free reader is just for viewing
    http://www.estello.se

  • Unable to create a hyperlink to a YouTube page

    I'm unable to create a working hyperlink to a YouTube page. I have permission to link to the content. What might be the issue here?

    How are you trying to add the link? The method I prefer is to go to the Youtube page and get the Embed code and put that in an html snippet as shown on this demo page: Adding YouTube & Vimeo Videos.
    OT

  • How do i Hyperlink to a web page from a java application?

    How do i Hyperlink to a web page from a java application using internet explorer as my default web browser?

    It's very simple.You can start any Application with the class Runtime. The command is an array consisting of the path of .exe and the file to be open.
    String [] cmd={path of IE+Filename.exe,"URL of your website"}
    try
    Runtime.getRuntime().exec(cmd);
    catch (Exception e)
    System.err.println(e.toString());
    }

Maybe you are looking for