NAME
       tk - Manipulate Tk internal state

SYNOPSIS
       tk option ?arg arg ...?


DESCRIPTION
       The  tk  command provides access to miscellaneous elements
       of Tk's internal state.  Most of the  information  manipu-
       lated  by  this  command  pertains to the application as a
       whole, or to a screen or display, rather than to a partic-
       ular window.  The command can take any of a number of dif-
       ferent forms depending on the option argument.  The  legal
       forms are:

       tk appname ?newName?
              If  newName  isn't  specified, this command returns
              the name of the application (the name that  may  be
              used  in  send  commands  to  communicate  with the
              application).  If newName is  specified,  then  the
              name  of the application is changed to newName.  If
              the given name is already in use, then a suffix  of
              the form `` #2'' or `` #3'' is appended in order to
              make the name unique.  The command's result is  the
              name  actually  chosen.   newName  should not start
              with a capital letter.  This  will  interfere  with
              option  processing, since names starting with capi-
              tals are assumed to be classes;  as  a  result,  Tk
              may not be able to find some options for the appli-
              cation.  If sends have been  disabled  by  deleting
              the  send  command, this command will reenable them
              and recreate the send command.


KEYWORDS
       application name, send
