term::send(3tcl)

πŸ“¦
version 2.0 Β· 2 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ term::send β€” bestie edition ✨

okay so this is the term::send page from section 3tcl, filed under Terminal control, and it's literally the most baby-steps package in the whole terminal family 🫢


🌸 NAME 🌸

term::send β€” general output to terminals, no cap πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

package require Tcl 8.5 9

package require term::send ?0.2?

::term::send::wrch chan str

::term::send::wr str

πŸ’– DESCRIPTION πŸ’–

so this package is like… the bare minimum. the most primitive little commands for yeeting characters at a terminal πŸ¦‹ it's giving "convenient wrappers around the builtin command puts", and honestly? iconic. no notes.

  • ::term::send::wrch chan str β€” sends the text str to the channel that the handle chan is pointing at 🌈 and here's the tea: unlike the builtin puts, this one does not slap a line terminator on the end of the string. it also forces a flush of both the Tcl internal buffers and the OS buffers, so those characters get processed immediately ✨ no sitting around in a buffer, no waiting, we're moving fast.
  • ::term::send::wr str β€” the low-effort bestie version πŸ’… works exactly like ::term::send::wrch, except the destination channel is hardcoded to stdout. that's it. that's the whole thing.

πŸ’€ BUGS, IDEAS, FEEDBACK πŸ’€

ngl, this document and the package it describes will undoubtedly contain bugs and other problems 😭 like, it's software, be so fr.

please report them in the category term of the Tcllib Trackers: http://core.tcl.tk/tcllib/reportlist

also please send any ideas for enhancements you have for the package and/or the documentation, we want them, we're obsessed with them πŸ₯°

when proposing code changes, please provide unified diffs, i.e. the output of diff -u. periodt.

also note: attachments are strongly preferred over inlined patches πŸ™ˆ you can attach stuff by going to the Edit form of the ticket right after it's created, and then using the left-most button in the secondary navigation bar. yw bestie πŸ’–


πŸ”₯ KEYWORDS πŸ”₯

character output, control, terminal


πŸ‘‘ CATEGORY πŸ‘‘

Terminal control


Copyright (c) 2006 Andreas Kupries <andreas_kupries@users.sourceforge.net>


and that's the whole page, bestie 🧚 this was tcllib, version 0.3, the term::send manual page β€” mwah, go forth and send some characters πŸ’…βœ¨

πŸ“¦ where this page comes from