blt::cutbuffer(3tcl)
π blt::cutbuffer β the Tcl manual, but make it cute π
okay bestie, so this one lives in the BLT Built-In Commands section of the Tcl manual, and it's called blt::cutbuffer. it's giving clipboard-adjacent main character energy and i'm obsessed. let's get into it π«Ά
β¨ NAME β¨
cutbuffer β manipulate X cut buffer properties π
β¨ SYNOPSIS β¨
cutbuffer get ?number?
cutbuffer rotate ?count?
cutbuffer set value ?number?
like, three whole operations, three whole moods. slay. π
β¨ DESCRIPTION β¨
so the cutbuffer command lets you read or modify the eight X cut buffer properties. that's right, bestie β eight of them, not seven, not nine, eight β¨
and because that's not enough chaos for one command, you can also rotate the buffer properties. no cap. the buffers just... spin. π
β¨ OPERATIONS β¨
these are the operations available for the cutbuffer command, and yes we're going through every single one, i don't skip π
cutbuffer get ?number?β returns the value of cutbuffer number. number has to be a number between0and7, and if you don't say anything the default is0. the cutbuffer comes back to you exactly, with one lil exception: NUL bytes get converted to'@'characters. wild, i know π and if a cut buffer number doesn't exist? you get""back. nothing. silence. a void. πcutbuffer rotate ?count?β rotates the cut buffers by count. count has to be a number between-7and7, and the default is1. note the negative numbers are valid here, so you can spin it either way, iconique πcutbuffer set value ?number?β sets the cutbuffer number to value. number has to be a number between0and7, and yeah, default is0. simple, clean, ate π₯
heads up bestie: the0to7range on number is not a suggestion, it's the law, and count living between-7and7is equally non-negotiable. don't test it π
β¨ KEYWORDS β¨
cut buffer, property π¦
and that's the whole thing! this page came to you from BLT 2.5, dated back in the day, in the blt::cutbuffer(3tcl) manual section. mwah, go read a cut buffer or something πβ¨πΈ
π¦ where this page comes from
- debian bookworm: blt-dev 2.5.3+dfsg-4.1
- debian trixie: blt-dev 2.5.3+dfsg-8
- ubuntu jammy: blt-dev 2.5.3+dfsg-4.1build2
- ubuntu noble: blt-dev 2.5.3+dfsg-7build1
- ubuntu questing: blt-dev 2.5.3+dfsg-8
- ubuntu resolute: blt-dev 2.5.3+dfsg-8build1
- ubuntu stonking: blt-dev 2.5.3+dfsg-9
- Copyright 1991-1997 by Bell Labs Innovations for Lucent Technologies
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms