fileevent(n)

πŸ“¦
version 9.0.3 Β· 3 versions
, in alpine 3.23, alpine 3.24, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable

✨ fileevent(n) ✨

okay bestie, welcome to the fileevent page πŸ’– this one lives in the Tcl Built-In Commands section of the manual, and honestly? it's a lil nostalgic relic. let's get into it 🫢


πŸ’« NAME πŸ’«

fileevent β€” run a script when a channel becomes readable or writable πŸ‘€βœ¨


πŸŽ€ SYNOPSIS πŸŽ€

fileevent channel readable ?script?

fileevent channel writable ?script?

🌸 DESCRIPTION 🌸

so here's the tea β˜•: the fileevent command has been superceded by the chan event command. no cap. 😭

and the good news is that chan event supports the exact same syntax and options, so like… the glow-up is seamless, you just swap the name and you're slaying πŸ’…

fr fr, if you're writing new code, go hang out with chan event instead. fileevent is giving legacy energy πŸ‘‘

πŸ‘‘ SEE ALSO πŸ‘‘

  • chan(n) β€” the main character that replaced this one 🌟

and that's the whole page, bestie, short and sweet like a lil snack πŸ“

this gem comes from Tcl, version 7.5, and the date on the original footer is 7.5 too β€” so yeah, this one's been around a minute. periodt. πŸ’œπŸ¦‹

πŸ“¦ where this page comes from