tcl::chan::std(3tcl)
β¨ NAME β¨
okay so bestie, this is tcl::chan::std β it's giving Standard I/O, unification of stdin and stdout π (that's from the tcl::chan::std manual page in section 3tcl, iykyk)
πΈ SYNOPSIS πΈ
package require Tcl 8.5 9
package require TclOO
package require tcl::chan::core ?1.1?
package require tcl::chan::std ?1.1?
::tcl::chan::std
π DESCRIPTION π
so the tcl::chan::std package hands you a command that creates a standard channel which unifies stdin and stdout into literally one single read- and writable channel. one channel, two jobs, main character energy fr fr π
the result is not seek-able, exactly like the original standard channels β no cap, that's just how it is, so don't come for it.
the internal TclOO class implementing the channel handler is a sub-class of the tcl::chan::core framework. iconic inheritance moment π
π¦ API π¦
::tcl::chan::stdβ this command creates the std channel and returns its handle. β¨
bestie listen: the channel is created only once, on the first call, and all future calls simply return this handle. so it's like, one and done, the same handle every single time π«Ά
π BUGS, IDEAS, FEEDBACK π
this document, and the package it describes, will undoubtedly contain bugs and other problems. like, obviously. it's software. please report such in the category virtchannel of the Tcllib Trackers at http://core.tcl.tk/tcllib/reportlist. please also report any ideas for enhancements you may have for either the package and/or the documentation β we want the glow-up ideas π
when proposing code changes, please provide unified diffs, i.e the output of diff -u. not vibes. actual diffs.
note further that attachments are strongly preferred over inlined patches. attachments can be made by going to the Edit form of the ticket immediately after its creation, and then using the left-most button in the secondary navigation bar. yes, that specific button. go find it π§
β KEYWORDS β
reflected channel, standard io, stdin, stdout, tip 219, virtual channel
π CATEGORY π
Channels
π COPYRIGHT π
Copyright (c) 2011 Andreas Kupries <andreas_kupries@users.sourceforge.net>
and that's the whole page bestie, no crumbs left π this was tcllib version 1.1 of tcl::chan::std(3tcl) β slay, periodt π
β¨
π¦ where this page comes from
- debian trixie: tcllib 2.0+dfsg-4 Β· Tcl
- ubuntu questing: tcllib 2.0+dfsg-4
- ubuntu resolute: tcllib 2.0+dfsg-5 Β· Tcl
- ubuntu stonking: tcllib 2.0+dfsg-6 Β· Tcl
- Copyright (c) 2011 Andreas Kupries <andreas_kupries@users\&.sourceforge\&.net>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms