tkcon(3tk)
π tkcon β Controlling TkCon console π
okay bestie, welcome to tkcon, manual section 3tk β this is the whole control panel for your TkCon console and honestly? it's giving main character energy. π
β¨ SYNOPSIS β¨
tkcon attach interpreter
tkcon buffer ?size?
tkcon bgerror ?msg errorInfo?
tkcon close or tkcon destroy
tkcon congets
tkcon console args
tkcon error
tkcon find string ?-case TCL_BOOLEAN -regexp TCL_BOOLEAN?
tkcon font ?fontname?
tkcon gets
tkcon getcommand
tkcon hide
tkcon history ?-newline?
tkcon iconify
tkcon linelength ?value?
tkcon load filename
tkcon main ?arg arg ...?
tkcon master args
tkcon new
tkcon resultfilter ?command?
tkcon save ?filename ?type??
tkcon set var ?value?
tkcon append var ?value?
tkcon lappend var ?value?
tkcon show or tkcon deiconify
tkcon slave ?slavename ?arg arg ...??
tkcon title ?title?
tkcon version
πΈ DESCRIPTION πΈ
so like β this is your β¨entireβ¨ remote control for a console. lots of useful control over a console, that's the vibe. let's go through it one by one, no skipping, fr fr:
tkcon attach interpreterβ hooks your tkcon up to the interpreter you name. πͺ that name has to be whatever[tk appname]gave back, or a legit path to a slave interpreter. lowkey the best way to do this is through the Console->Attach Console menu, just saying. πtkcon buffer ?size?β sets or asks about the allowed size of the console text widget, measured in lines. once you go over that number the text widget auto-deletes the leading lines for you (read: this is literally the scroll buffer size, bestie). πtkcon bgerror ?msg errorInfo?β does the bgerror stuff, but in the tkcon master interpreter. β¨tkcon closeortkcon destroyβ destroys this tkcon widget. π gone. poof.tkcon congetsβ acts like the classic Tclgets, except instead of stdin it uses the tkcon console window. π«Ά by default tkcon swaps the standardgetsout for this command. you can control that behavior by changing the::tkcon::OPT(gets)parameter at startup. do not call this one directly β rely on the overloadedgetsinstead, it supports the optional varName parameter. periodt.tkcon console argsβ passes the args straight to the tkcon text widget (the console itself). πtkcon errorβ pops up a dialog giving you the full trace of the last error the tkcon console received. full receipt, no crumbs. πtkcon find string ?-case TCL_BOOLEAN -regexp TCL_BOOLEAN?β highlights every instance of string in the console. if string is empty, it clears out any previous highlighting. πβ¨tkcon font ?fontname?β sets or returns the font used by the tkcon text widgets. ποΈ iconic.tkcon getsβ acts like the classic Tclgets, except it doesn't need stdin β it pops a dialog box up for the user instead. the overloadedgetssupports the optional varName parameter. π¦tkcon getcommandβ a variation of the congets method that won't return until a whole full command has been input. β¨οΈtkcon hideβ withdraws the tkcon display from the screen. > bestie. please make sure you have a way to get it back first. πtkcon iconifyβ iconifies the tkcon display. tiny little window era. πΈtkcon history ?-newline?β displays the tkcon history in sourceable form. if-newlineis specified, it separates each command with an extra newline. πtkcon linelength ?value?β sets or displays the number that specifies the limit of long result lines. the true result is still captured in$_(andputs $_works, so you're covered π ).tkcon load filenameβ sources the named file into the slave interpreter. if you don't give a filename, it'll try to calltk_getOpenFileto pop up the file select box. πtkcon main ?arg arg ...?β passes the args to the main tkcon interpreter to be evaluated, then returns the result. β¨tkcon master argsβ passes the args to the master interpreter to be evaluated, then returns the result. πtkcon newβ creates a brand new tkcon widget. πtkcon resultfilter ?command?β picks a command to process results before they get output to the console window. that command gets one argument (the result string), and whatever string it hands back is what gets placed in the console. πtkcon save ?filename ?type??β saves the console buffer to the given filename. no filename? it'll try to calltk_getSaveFileto pop up the file select box. no type? a dialog will ask you which portion of the text you want to save. πΎtkcon set var ?value?β queries or sets a master interpreter variable. π«Άtkcon append var ?value?β just likeset, but it usesappendon the variable. π§tkcon lappend var ?value?β just likeset, but it useslappendon the variable. πtkcon showortkcon deiconifyβ puts tkcon back up on the screen. she's back. πtkcon slave ?slavename ?arg arg ...??β called with no args, it returns the name of all the tkcon interpreters. otherwise, given an interp name, it passes the args to that named interpreter to be evaluated and returns the result. if no args are passed, it returns the[tk appname]of that interpreter. πtkcon title ?title?β sets or returns the title for tkcon. nameplate update, slay. πtkcon versionβ returns of version of tkcon. (that's exactly what it says, and we love it π«Ά)
π¦ SEE ALSO π¦
dump(3tk), observe(3tk), tkcon(1), tkcon(3tk), tkconrc(5)
π KEYWORDS π
Tk, console, debug
π COPYRIGHT π
Copyright (c) Jeffrey Hobbs <jeff at hobbs.org>
and that's the whole page, bestie β this was TkCon, version 2.5, and you just read tkcon(3tk). go forth and control that console. no cap. π
β¨π
π¦ where this page comes from
- debian bookworm: tkcon 2:2.7.11-1
- debian trixie: tkcon 2:2.7.11-6
- ubuntu jammy: tkcon 2:2.7.10-2
- ubuntu noble: tkcon 2:2.7.11-1
- ubuntu resolute: tkcon 2:2.7.11-6
- ubuntu stonking: tkcon 2:2.7.11-6
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms