logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

tkcon - Controlling TkCon console

Description

       This provides lots of useful control over a console:

       tkconattachinterpreter
              Attaches  tkcon  to  the  named  interpreter.  The name must be that returned by [tkappname] or a
              valid path to a slave interpreter.  It's best to use this via the Console->AttachConsole menu.

       tkconbuffer ?size?
              Sets or queries the allowed size of the console text  widget  in  lines.   The  text  widget  will
              automatically  delete  leading  lines once this number has been exceeded (read: this is the scroll
              buffer size).

       tkconbgerror ?msgerrorInfo?
              Does bgerror stuff in the tkcon master interpreter.

       tkconclose or tkcondestroy
              Destroys this tkcon widget.

       tkconcongets
              Behaves like the traditional Tcl gets, but instead of using  stdin,  it  uses  the  tkcon  console
              window.   By  default,  tkcon  replaces the standard gets with this command.  This behavior can be
              controlled by altering the ::tkcon::OPT(gets) parameter at startup.  This  should  not  be  called
              directly  -  instead  rely  on  the  overloaded  gets,  which has support for the optional varName
              parameter.

       tkconconsoleargs
              Passes the args to the tkcon text widget (the console).

       tkconerror
              Pops up a dialog that gives the user a full trace of the last error received in the tkcon console.

       tkconfindstring ?-caseTCL_BOOLEAN-regexpTCL_BOOLEAN?
              Highlights all instances of string in the console.  If the string is empty, it clears any previous
              highlighting.

       tkconfont ?fontname?
              Sets or returns the font used by tkcon text widgets.

       tkcongets
              Behaves like the traditional Tcl gets, but instead of needing stdin, it pops a dialog box  up  for
              the user.  The overloaded gets has support for the optional varName parameter.

       tkcongetcommand
              A variation of the congets method that requires a full command to be input before returning.

       tkconhide
              Withdraw the tkcon display from the screen (make sure you have a way to get it back).

       tkconhistory ?-newline?
              Displays  the  tkcon  history  in  sourceable  form.   If -newline is specified, it separates each
              command by an extra newline.

       tkconiconify
              Iconifies the tkcon display.

       tkconlinelength ?value?
              Sets or displays the number that specifies the limit of long result lines.  True result  is  still
              captured in $_ (and 'puts $_' works).

       tkconloadfilename
              Sources  named  file into the slave interpreter.  If no filename is given, it will attempt to call
              tk_getOpenFile to pop up the file select box.

       tkconmain ?argarg...?
              Passes the args to the main tkcon interpreter to be evaluated and returns the result.

       tkconmasterargs
              Passes the args to the master interpreter to be evaluated and returns the result.

       tkconnew
              Creates a new tkcon widget.

       tkconresultfilter ?command?
              Specify a command to process the results before outputting it to the console window.  The  command
              receives one argument (the result string) and the string returned is placed in the console.

       tkconsave ?filename ?type??
              Saves  the console buffer to the given filename.  If no filename is given, it will attempt to call
              tk_getSaveFile to pop up the file select box.  If no type is given,  a  dialog  will  ask  you  to
              specify what portion of the text you want to save.

       tkconsetvar ?value?
              Queries or sets a master interpreter variable.

       tkconappendvar ?value?
              Like set, but uses append on the variable.

       tkconlappendvar ?value?
              Like set, but uses lappend on the variable.

       tkconshow or tkcondeiconify
              Redisplays tkcon on the screen.

       tkconslave ?slavename ?argarg...??
              If  called  with  no  args, it returns the name of all the tkcon interpreters.  Otherwise given an
              interp name it passes the args to the named interpreter to be evaluated and  returns  the  result.
              If no args are passed, then it returns the [tkappname] of that interpreter.

       tkcontitle ?title?
              Sets or returns the title for tkcon.

       tkconversion
              Returns of version of tkcon.

Keywords

       Tk, console, debug

Name

       tkcon - Controlling TkCon console

See Also

dump(3tk), observe(3tk), tkcon(1), tkcon(3tk), tkconrc(5)

Synopsis

tkconattachinterpretertkconbuffer ?size?

       tkconbgerror ?msgerrorInfo?

       tkconclose or tkcondestroytkconcongetstkconconsoleargstkconerrortkconfindstring ?-caseTCL_BOOLEAN-regexpTCL_BOOLEAN?

       tkconfont ?fontname?

       tkcongetstkcongetcommandtkconhidetkconhistory ?-newline?

       tkconiconifytkconlinelength ?value?

       tkconloadfilenametkconmain ?argarg...?

       tkconmasterargstkconnewtkconresultfilter ?command?

       tkconsave ?filename ?type??

       tkconsetvar ?value?

       tkconappendvar ?value?

       tkconlappendvar ?value?

       tkconshow or tkcondeiconifytkconslave ?slavename ?argarg...??

       tkcontitle ?title?

       tkconversion

________________________________________________________________________________________________________________

See Also