term::send(n)
π term::send(n) β ok bestie, we're talking to terminals now π
sooo this is the manual page for term::send, hanging out in the Terminal control section of the tcllib docs. It's giving "tiny package, big feelings" energy, and honestly? We're obsessed. π
β¨ NAME β¨
term::send β General output to terminals π
πΈ SYNOPSIS πΈ
package require Tcl 8.5 9
package require term::send ?0.2?
::term::send::wrch chan str
::term::send::wr str
quick vibe check: that ?0.2? means the version is optional-ish in the way manpages write these things β copy it exactly as shown, don't get cute with it. π«Ά
π¦ DESCRIPTION π¦
Okay so here's the tea: this package gives you the most primitive commands for yeeting characters at a terminal. That's it. That's the whole job. β¨
They are, in essence, convenient wrappers around the builtin command puts. Lowkey iconic behavior β no cap.
π the commands, one by one
::term::send::wrch chan strβ sends the textstrto the channel specified by the handlechan. Now here's where it differs from the builtinputs: this one does NOT terminate the string with a line terminator. Not even a little. It also forces a flush of Tcl internal buffers and OS buffers, so you know for a fact those characters get processed immediately. No lingering in buffer limbo, bestie. π«Ά::term::send::wr strβ this is the convenience command, and it's basically::term::send::wrchbut the destination channel is fixed tostdout. Same energy, fewer arguments. Main character shortcut. π
π BUGS, IDEAS, FEEDBACK π
Not me having to say this, but: this document, and the package it describes, will undoubtedly contain bugs and other problems. Fr fr. It's not a vibe, it's just reality. π
Please report such in the category term 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. Give them to us. π
When proposing code changes, please provide unified diffs, i.e. the output of diff -u. That's the format, that's the assignment, that's periodt.
heads up: attachments are strongly preferred over inlined patches. To attach something, go to the Edit form of the ticket immediately after its creation, and then use the left-most button in the secondary navigation bar. iykyk. π¦
π KEYWORDS π
character output, control, terminal
π CATEGORY π
Terminal control
π COPYRIGHT π
Copyright (c) 2006 Andreas Kupries <andreas_kupries@users.sourceforge.net>
and that's the whole page, bestie β this beauty comes to you from tcllib, version 0.3, filed under term::send(n). Go forth and flush your buffers. Slay. π
β¨π¦πΈπ
π¦ 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) 2006 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