{
    "mode": "man",
    "parameter": "captoinfo",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/captoinfo/1/json",
    "generated": "2026-06-12T13:10:34Z",
    "synopsis": "captoinfo [-vn width]  [-V] [-1] [-w width] file ...",
    "sections": {
        "NAME": {
            "content": "captoinfo - convert a termcap description into a terminfo description\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "captoinfo [-vn width]  [-V] [-1] [-w width] file ...\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "captoinfo  looks  in  each  given text file for termcap descriptions.  For each one found, an\nequivalent terminfo description is written to standard output.  Termcap tc  capabilities  are\ntranslated directly to terminfo use capabilities.\n\nIf no file is given, then the environment variable TERMCAP is used for the filename or entry.\nIf TERMCAP is a full pathname to a file, only the terminal whose name is specified in the en‐\nvironment  variable TERM is extracted from that file.  If the environment variable TERMCAP is\nnot set, then the file /etc/terminfo is read.\n",
            "subsections": [
                {
                    "name": "-v",
                    "content": "",
                    "flag": "-v"
                },
                {
                    "name": "-V",
                    "content": "",
                    "flag": "-V"
                },
                {
                    "name": "-1",
                    "content": "eral to a line to a maximum width of 60 characters.\n",
                    "flag": "-1"
                },
                {
                    "name": "-w",
                    "content": "",
                    "flag": "-w"
                }
            ]
        },
        "FILES": {
            "content": "/etc/terminfo       Compiled terminal description database.\n",
            "subsections": []
        },
        "TRANSLATIONS FROM NONSTANDARD CAPABILITIES": {
            "content": "Some  obsolete  nonstandard  capabilities  will  automatically  be  translated  into standard\n(SVr4/XSI Curses) terminfo capabilities by captoinfo.  Whenever one of these automatic trans‐\nlations is done, the program will issue an notification to stderr, inviting the user to check\nthat it has not mistakenly translated a completely unknown and random capability and/or  syn‐\ntax error.\n\nNonstd   Std    From           Terminfo\nname    name                 capability\n───────────────────────────────────────────────\nBO       mr     AT&T    enterreversemode\nCI       vi     AT&T    cursorinvisible\nCV       ve     AT&T    cursornormal\nDS       mh     AT&T    enterdimmode\nEE       me     AT&T    exitattributemode\nFE       LF     AT&T    labelon\nFL       LO     AT&T    labeloff\nXS       mk     AT&T    entersecuremode\nEN       @7     XENIX   keyend\nGE       ae     XENIX   exitaltcharsetmode\nGS       as     XENIX   enteraltcharsetmode\nHM       kh     XENIX   keyhome\nLD       kL     XENIX   keydl\nPD       kN     XENIX   keynpage\nPN       po     XENIX   prtroff\nPS       pf     XENIX   prtron\nPU       kP     XENIX   keyppage\nRT       @8     XENIX   kent\nUP       ku     XENIX   kcuu1\nKA       k;     Tek     keyf10\nKB       F1     Tek     keyf11\nKC       F2     Tek     keyf12\nKD       F3     Tek     keyf13\n\nKE       F4     Tek     keyf14\nKF       F5     Tek     keyf15\nBC       Sb     Tek     setbackground\nFC       Sf     Tek     setforeground\nHS       mh     Iris    enterdimmode\n\nXENIX  termcap  also used to have a set of extension capabilities for forms drawing, designed\nto take advantage of the IBM PC high-half graphics.  They were as follows:\n\nCap          Graphic\n─────────────────────────────\nG2    upper left\nG3    lower left\nG1    upper right\nG4    lower right\nGR    pointing right\nGL    pointing left\nGU    pointing up\nGD    pointing down\nGH    horizontal line\nGV    vertical line\nGC    intersection\nG6    upper left\nG7    lower left\nG5    upper right\nG8    lower right\nGr    tee pointing right\nGr    tee pointing left\nGu    tee pointing up\nGd    tee pointing down\nGh    horizontal line\nGv    vertical line\nGc    intersection\nGG    acs magic cookie count\n\nIf the single-line capabilities occur in an entry, they will automatically be  composed  into\nan acsc string.  The double-line capabilities and GG are discarded with a warning message.\n\nIBM's AIX has a terminfo facility descended from SVr1 terminfo but incompatible with the SVr4\nformat.  The following AIX extensions are automatically translated:\n\nIBM    XSI\n─────────────\nksel    kslt\nkbtab   kcbt\nfont0   s0ds\nfont1   s1ds\nfont2   s2ds\nfont3   s3ds\n\nAdditionally, the AIX box1 capability will be automatically translated to an acsc string.\n\nHewlett-Packard's terminfo library supports two nonstandard terminfo capabilities meml  (mem‐\nory lock) and memu (memory unlock).  These will be discarded with a warning message.\n",
            "subsections": []
        },
        "NOTES": {
            "content": "This utility is actually a link to tic(1), running in -I mode.  You can use other tic options\nsuch as -f and  -x.\n\nThe verbose option is not identical to SVr4's.  Under SVr4, instead of following the -v  with\na trace level n, you repeat it n times.\n",
            "subsections": []
        },
        "PORTABILITY": {
            "content": "X/Open  Curses,  Issue  7 (2009) describes tic briefly, but omits this program.  SVr4 systems\nprovide captoinfo as a separate application from tic.\n\nNetBSD does not provide this application.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "infocmp(1), ncurses(3NCURSES), terminfo(5)\n\nThis describes ncurses version 6.3 (patch 20211021).\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Eric S. Raymond <esr@snark.thyrsus.com> and\nThomas E. Dickey <dickey@invisible-island.net>\n\n\n\ncaptoinfo(1)",
            "subsections": []
        }
    },
    "summary": "captoinfo - convert a termcap description into a terminfo description",
    "flags": [
        {
            "flag": "-v",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-V",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-1",
            "long": null,
            "arg": null,
            "description": "eral to a line to a maximum width of 60 characters."
        },
        {
            "flag": "-w",
            "long": null,
            "arg": null,
            "description": ""
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "infocmp",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/infocmp/1/json"
        },
        {
            "name": "ncurses",
            "section": "3NCURSES",
            "url": "https://www.chedong.com/phpMan.php/man/ncurses/3NCURSES/json"
        },
        {
            "name": "terminfo",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/terminfo/5/json"
        }
    ]
}