{
    "mode": "man",
    "parameter": "captoinfo",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/captoinfo/1/json",
    "generated": "2026-11-09T19:17:22Z",
    "synopsis": "captoinfo [tic-option] [file ...]",
    "sections": {
        "NAME": {
            "content": "captoinfo - convert a termcap description into a terminfo description\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "captoinfo [tic-option] [file ...]\n",
            "subsections": [
                {
                    "name": "captoinfo -V",
                    "content": ""
                }
            ]
        },
        "DESCRIPTION": {
            "content": "captoinfo translates terminal descriptions.  It looks in each given text file for termcap en‐\ntries and, for each one found, writes an equivalent terminfo description to the standard out‐\nput stream.  termcap tc capabilities translate to terminfo “use” capabilities.\n\nIf  no  files  are  specified,  captoinfo  interprets the content of the environment variable\nTERMCAP as a file name, and extracts only the entry for the terminal named in the environment\nvariable TERM from it.  If the environment variable  TERMCAP  is  not  set,  captoinfo  reads\n/etc/termcap.\n\nThis  utility  is  implemented as a link to tic(1), with the latter's -I option implied.  You\ncan use other tic options such as -1, -f, -v, -w, and -x.  The -V option reports the  version\nof ncurses associated with this program and exits with a successful status.\n",
            "subsections": [
                {
                    "name": "Translations from Nonstandard Capabilities",
                    "content": "captoinfo  translates some obsolete, nonstandard capabilities into standard (SVr4/XSI Curses)\nterminfo capabilities.  It issues a diagnostic to the standard error stream for each,  invit‐\ning the user to check that it has not mistakenly translated an unknown or mistyped capability\nname.\n\nName\nObsolete   Standard    Origin      terminfo 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;      Tektronix   keyf10\nKB         F1      Tektronix   keyf11\nKC         F2      Tektronix   keyf12\nKD         F3      Tektronix   keyf13\nKE         F4      Tektronix   keyf14\nKF         F5      Tektronix   keyf15\nBC         Sb      Tektronix   setbackground\nFC         Sf      Tektronix   setforeground\nHS         mh        IRIX      enterdimmode\n\nXENIX termcap had a set of extension capabilities, corresponding to box drawing characters of\nCCSID (“code page”) 437, as follows.\n\ntermcap Name            Graphic\n─────────────────────────────────────────\nG2        upper left corner\nG3        lower left corner\nG1        upper right corner\nG4        lower right corner\nGR        tee pointing right\nGL        tee pointing left\nGU        tee pointing up\nGD        tee pointing down\nGH        horizontal line\nGV        vertical line\nGC        intersection\nG6        double upper left corner\nG7        double lower left corner\nG5        double upper right corner\nG8        double lower right corner\nGr        double tee pointing right\nGr        double tee pointing left\nGu        double tee pointing up\nGd        double tee pointing down\nGh        double horizontal line\nGv        double vertical line\nGc        double intersection\nGG        ACS magic cookie count\n\ncaptoinfo  composes single-line capabilities into an acsc string, and discards GG and double-\nline capabilities with a warning diagnostic.\n\nIBM's AIX has a terminfo facility descended from SVr1 terminfo,  but  which  is  incompatible\nwith the SVr4 format.  captoinfo translates the following AIX extensions.\n\nIBM    XSI\n─────────────\nksel    kslt\nkbtab   kcbt\nfont0   s0ds\nfont1   s1ds\nfont2   s2ds\nfont3   s3ds\n\nAdditionally, this program translates the AIX box1 capability to an acsc string.\n\nThe HP-UX terminfo library supports two nonstandard terminfo capabilities, meml (memory lock)\nand memu (memory unlock).  captoinfo discards these with a warning message.\n"
                }
            ]
        },
        "FILES": {
            "content": "/etc/termcap\ndefault termcap terminal capability database\n",
            "subsections": []
        },
        "PORTABILITY": {
            "content": "X/Open Curses, Issue 7 (2009) describes tic briefly, but omits this program.\n\nSVr4  systems  provide  captoinfo as a separate application from tic.  Its -v option does not\naccept a trace level argument n; repeat -v n times instead.\n\nNetBSD does not provide this application.\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "Eric S. Raymond <esr@snark.thyrsus.com> and\nThomas E. Dickey <dickey@invisible-island.net>\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "infocmp(1), tic(1), ncurses(3NCURSES), terminfo(5)\n\nncurses 6.4                                  2023-12-23                                 captoinfo(1)",
            "subsections": []
        }
    },
    "summary": "captoinfo - convert a termcap description into a terminfo description",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "infocmp",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/infocmp/1/json"
        },
        {
            "name": "tic",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/tic/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"
        }
    ]
}