dump(3tk)
β¨ dump(3tk) β¨
okay bestie, welcome to the dump manual page β it's the TkCon one, from section 3tk, and it's literally your little state-printer for a Tcl interpreter π
πΈ NAME πΈ
dump β dump information about a Tcl interpreter, in TkCon π«Ά
β¨ SYNOPSIS β¨
dump method ?-nocomplain? ?-filter pattern? ?--? pattern ?pattern ...?
π DESCRIPTION π
so the dump command is your bestie's way of spitting out state information about the interpreter β in a Tcl-readable form, which is also, conveniently, human-readable π It takes the general shape:
dump method ?-nocomplain? ?-filter pattern? ?--? pattern ?pattern ...?
The patterns are glob-style patterns, exactly like in string match pattern $str. no cap.
-nocomplain stops dump from throwing an error when nothing matched your pattern β it's giving "no drama, we move on" π
-filter gets interpreted however makes sense for whichever method you picked. iykyk.
and the methods?? the methods are iconic, here they are:
dump command argsβ outputs one or more commands β¨dump procedure argsβ outputs one or more procs, in sourceable form π (yes, sourceable, you can just feed it back in, periodt)dump variable argsβ outputs the values of variables in sourceable form π It recognizes nested arrays, which is lowkey the best part. The-filterpattern is used to filter array element names and is interpreted as a glob pattern (it defaults to{*}). It gets passed down for nested arrays too, so the filtering follows you all the way in πdump widget argsβ outputs one or more widgets by giving their configuration options π¦ Here the-filterpattern filters the config options, and it's interpreted as a case insensitive regexp pattern (defaults to{.*}).
heads up bestie: watch which filter style you're using βdump variablewants a glob,dump widgetwants a case insensitive regexp, and they have different defaults ({*}vs{.*}). not me mixing those up π
π₯ SEE ALSO π₯
π KEYWORDS π
Tk, console, dump
π COPYRIGHT π
Copyright (c) Jeffrey Hobbs <jeff at hobbs.org>
and that's the whole page, bestie πΈ this was TkCon 2.5, dump(3tk), go forth and dump responsibly πβ¨π
π¦ 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