tcl::chan::nullzero(n)
β¨ tcl::chan::nullzero β¨
okay bestie, welcome to tcl::chan::nullzero β part of the Tcllib reflected/virtual channel support family, and honestly? it's giving void. it's giving the abyss staring back, but politely. π³οΈπ
πΈ NAME πΈ
tcl::chan::nullzero β the Null/Zero channel combination. it's both. at once. iconic behavior fr fr π
π SYNOPSIS π
package require Tcl 8.5 9
package require TclOO
package require tcl::chan::events ?1.1?
package require tcl::chan::nullzero ?1.1?
::tcl::chan::nullzero
no cap, that's the whole vibe. β¨
π¦ DESCRIPTION π¦
so the tcl::chan::nullzero package hands you a command that creates channels β and these channels are a combination of null and zero devices. like a bestie duo but as one entity. main character energy honestly π
what do they do? two things, and they ate:
- whatever you write to them, they immediately forget. instantly. gone. no notes, no memory, it never happened π
- when you read from them, you get an infinite stream of null characters. forever. it will never stop giving π
the packages related to this one are tcl::chan::null and tcl::chan::zero β this is basically their collab era π«Ά
also important: the internal TclOO class that implements the channel handler is a sub-class of the tcl::chan::events framework. so it's got that framework bloodline, iykyk. π§
π API π
::tcl::chan::nullzeroβ this command creates a brand new nullzero channel and returns its handle. that's it, that's the whole job, and it does it flawlessly β
π BUGS, IDEAS, FEEDBACK π
okay so real talk: this document, and the package it describes, will undoubtedly contain bugs and other problems. not being dramatic, it literally says so. π
please report such things in the category virtchannel of the Tcllib Trackers at [http://core.tcl.tk/tcllib/reportlist].
also please report any ideas for enhancements you may have for either the package and/or the documentation. we want them. we're obsessed with them actually π
when you're proposing code changes, please provide unified diffs, i.e. the output of diff -u.
and note further: attachments are strongly preferred over inlined patches. you can make an attachment 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. do it that way, bestie, trust π
π₯ KEYWORDS π₯
/dev/null, /dev/zero, null, reflected channel, tip 219, virtual channel, zero
π CATEGORY π
Channels
π COPYRIGHT π
Copyright (c) 2009 Andreas Kupries <andreas_kupries@users.sourceforge.net>
and that's the whole page, babes π
this was tcllib version 1.1, the tcl::chan::nullzero(n) page β thanks for reading the void with me, mwah πβ¨
π¦ where this page comes from
- fedora 43: tcllib 2.0-3.fc43 Β· TCL
- fedora 44: tcllib 2.0-4.fc44 Β· TCL
- nixos 26.05: tcllib 2.0
- nixpkgs unstable: tcllib 2.0
- Copyright (c) 2009 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