TICKIT_TERM_ERASECH(3)
π TICKIT_TERM_ERASECH π
okay bestie, gather round, because we're talking about tickit_term_erasech from the tickit library manual (section 3, library functions, you know the vibe) β¨
πΈ NAME πΈ
tickit_term_erasech β erase characters from the terminal π§Ή
β¨ SYNOPSIS β¨
#include <tickit.h>
void tickit_term_erasech(TickitTerm *tt, int count, TickitMaybeBool moveend);
Link with -ltickit. π
π¦ DESCRIPTION π¦
so tickit_term_erasech() erases count character cells going forward from wherever the cursor is sitting right now, and it does it using the current pen background colour π
now here's the tea, because not every terminal is built the same and this is where it gets interesting π Some terminals literally cannot erase using the background colour. so on those ones, this operation might get implemented by just printing spaces instead. and the consequence of that? the cursor gets moved to the end of the erased region. meanwhile, the other terminals β the ones that can erase with background colour β get to erase without the cursor moving at all. iconic behaviour honestly π
that's where the moveend parameter comes in, because it controls where the cursor ends up when this function returns:
TICKIT_YESβ the cursor gets moved to the end of the erased region if that's required. no cap, it's going to the end π«ΆTICKIT_NOβ the cursor gets moved back to its original location if that's required. it stays home, periodt.TICKIT_MAYBEβ this function just takes whichever behaviour is more optimal on the given terminal. main character energy, it decides for itself β¨
π RETURN VALUE π
tickit_term_erasech() returns no value. that's it, that's the whole thing, it's giving void π
π SEE ALSO π
tickit_term_build(3)tickit_term_goto(3)tickit_term_print(3)tickit_term_setpen(3)tickit_term_chpen(3)tickit_term(7)tickit(7)
okay that's the whole page, you ate it, you understood it, i'm obsessed ππ this was TICKIT_TERM_ERASECH(3) from the Library Functions Manual β mwah, go erase some cells bestie π§π
π¦ where this page comes from
- alpine 3.24: libtickit-doc 0.4.6-r0 Β· MIT
- debian bookworm: libtickit-dev 0.4.3-1 Β· MIT
- debian trixie: libtickit-dev 0.4.3-2 Β· MIT
- fedora 43: libtickit-devel 0.4.5-2.fc43 Β· MIT
- fedora 43: libtickit-devel 0.4.5-2.fc43 Β· MIT
- fedora 44: libtickit-devel 0.4.5-3.fc44 Β· MIT
- fedora 44: libtickit-devel 0.4.5-3.fc44 Β· MIT
- nixos 26.05: libtickit 0.4.5
- nixpkgs unstable: libtickit 0.4.6
- ubuntu jammy: libtickit-dev 0.4.1-1 Β· MIT
- ubuntu noble: libtickit-dev 0.4.3-1.1build1 Β· MIT
- ubuntu questing: libtickit-dev 0.4.3-2
- ubuntu resolute: libtickit-dev 0.4.3-2build1 Β· MIT
- ubuntu stonking: libtickit-dev 0.4.3-2build1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms