{
    "mode": "man",
    "parameter": "LISTRES",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/LISTRES/1/json",
    "generated": "2026-05-30T08:15:58Z",
    "synopsis": "listres [-option ...]",
    "sections": {
        "NAME": {
            "content": "listres - list resources in widgets\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "listres [-option ...]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The  listres  program  generates  a list of a widget's resource database.  The class in which\neach resource is first defined, the instance and class name, and the type of each resource is\nlisted.   If  no  specific  widgets or the -all switch are given, a two-column list of widget\nnames and their class hierarchies is printed.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "Listres accepts all of the standard toolkit command line options along with those listed  be‐\nlow:\n",
            "subsections": [
                {
                    "name": "-all",
                    "content": "objects.\n"
                },
                {
                    "name": "-nosuper",
                    "content": "This option indicates that resources that are inherited from a superclass should  not\nbe listed.  This is useful for determining which resources are new to a subclass.\n"
                },
                {
                    "name": "-variable",
                    "content": "This  option  indicates  that  widgets should be identified by the names of the class\nrecord variables rather than the class name given in the variable.   This  is  useful\nfor distinguishing subclasses that have the same class name as their superclasses.\n"
                },
                {
                    "name": "-top",
                    "content": "This  option specifies the name of the widget to be treated as the top of the hierar‐\nchy.  Case is not significant, and the name may match either the class variable  name\nor the class name.  The default is ``core''.\n"
                },
                {
                    "name": "-format",
                    "content": "This  option  specifies  the  printf-style  format string to be used to print out the\nname, instance, class, and type of each resource.\n"
                }
            ]
        },
        "X DEFAULTS": {
            "content": "To be written.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "X(7), xrdb(1), appropriate widget documents\n",
            "subsections": []
        },
        "BUGS": {
            "content": "On operating systems that do not support dynamic linking of run-time routines,  this  program\nmust  have  all  of its known widgets compiled in.  The sources provide several tools for au‐\ntomating this process for various widget sets.\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright 1994 X Consortium\nSee X(7) for a full statement of rights and permissions.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Jim Fulton, MIT X Consortium\n\n\n\nX Version 11                                listres 1.0.4                                 LISTRES(1)",
            "subsections": []
        }
    },
    "summary": "listres - list resources in widgets",
    "flags": [
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "objects."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "This option indicates that resources that are inherited from a superclass should not be listed. This is useful for determining which resources are new to a subclass."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "This option indicates that widgets should be identified by the names of the class record variables rather than the class name given in the variable. This is useful for distinguishing subclasses that have the same class name as their superclasses."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "This option specifies the name of the widget to be treated as the top of the hierar‐ chy. Case is not significant, and the name may match either the class variable name or the class name. The default is ``core''."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "This option specifies the printf-style format string to be used to print out the name, instance, class, and type of each resource."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "X",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/X/7/json"
        },
        {
            "name": "xrdb",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/xrdb/1/json"
        }
    ]
}