term::ansi::code(3tcl)

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

✨ term::ansi::code ✨

okay bestie, so this is the term::ansi::code page from the Tcllib manual, section 3tcl, and it's literally the cutest little helper for control sequences πŸ’… no cap.


🌸 NAME 🌸

term::ansi::code β€” bestie's lil helper for control sequences πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

package require Tcl 8.5 9

package require term::ansi::code ?0.2?

::term::ansi::code::esc str

::term::ansi::code::escb str

::term::ansi::code::define name escape code

::term::ansi::code::const name code

πŸ‘‘ DESCRIPTION πŸ‘‘

so this package hands you the commands to define control sequences the easy way, like, no drama, no suffering, just vibes ✨

  • ::term::ansi::code::esc str β€” this one returns the argument string with the ANSI escape character glued onto the front, that's "\033." πŸŽ€
  • ::term::ansi::code::escb str β€” same idea, but it slaps a common ANSI escape sequence on the front instead, which is "\033[" πŸ’œ
  • ::term::ansi::code::define name escape code β€” this defines a procedure called name that returns the control sequence code, and it starts with the escape sequence you picked, either esc or escb 🫢
  • ::term::ansi::code::const name code β€” this defines a procedure called name that just returns the control sequence code, periodt πŸ’«

😭 BUGS, IDEAS, FEEDBACK 😭

ngl, this document and the package it describes will undoubtedly contain bugs and other problems. it's giving "we know". so please report them in the category term of the Tcllib Trackers at http://core.tcl.tk/tcllib/reportlist πŸ™ˆ

also please send any ideas for enhancements you have for the package and/or the documentation, we wanna hear them fr fr πŸ₯Ί

when you propose code changes, bestie, please provide unified diffs, i.e. the output of diff -u πŸ“Ž

and one more thing: 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 🎯


πŸ”‘ KEYWORDS πŸ”‘

control, declare, define, terminal ⭐


🌈 CATEGORY 🌈

Terminal control πŸ–₯️✨


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


and that's the whole page bestie, mwah πŸ’‹ this one came from tcllib, version 0.2, and it's the term::ansi::code(3tcl) page. slay, go define some escape sequences, you got this 🧚

πŸ“¦ where this page comes from