gets(n)
β¨ gets(n) β¨
okay bestie, gather round β this is the gets page from the Tcl Built-In Commands manual, and it's a short one but it's got lore. π«Ά
π NAME π
gets β read a line from a channel πβ¨
π SYNOPSIS π
gets channel ?varName?
that's it. that's the whole vibe. two args, one of them optional, we love a low-maintenance icon. π
π¦ DESCRIPTION π¦
So here's the tea, bestie: gets has been superceded by the chan gets command. π (yes, the page really spells it "superceded" β we don't fix, we report. character for character, always.)
And the good news?? chan gets supports the same syntax and options as the one you're looking at right now. So it's not giving "everything you knew is a lie" β it's giving "same fit, new closet". π Same channel, same ?varName?, same energy, just living under the chan umbrella now.
lowkey important: this page is the old headmate. if you're out here writing fresh code, go hang withchaninstead. the originalgetsis giving legacy and you deserve the current era. π
πΈ SEE ALSO πΈ
chan(n)β go read this one, it's the main character now β
and that's the whole page, no cap π§
this lil gem comes to you from the Tcl manual, version 7.5 β mwah, iconic, historic, periodt. πππ¦
π¦ where this page comes from
- alpine 3.23: tcl9-doc 9.0.3-r0 Β· TCL
- alpine 3.24: tcl9-doc 9.0.3-r2 Β· TCL
- fedora 43: tcl-doc 1:9.0.2-1.fc43 Β· TCL AND GPL-3.0-or-later WITH Bison-exception-2.2 AND BSD-3-Clause
- fedora 44: tcl-doc 1:9.0.2-1.fc44 Β· TCL AND GPL-3.0-or-later WITH Bison-exception-2.2 AND BSD-3-Clause
- nixos 26.05: tcl 9.0.3
- nixpkgs unstable: tcl 9.1.0
- Copyright (c) 1993 The Regents of the University of California
- Copyright (c) 1994-1996 Sun Microsystems, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms