cd_winconsole(3)

πŸ“¦ version 1.6, in fedora 43, fedora 44

πŸ’– cd_winconsole πŸ’–

okay so bestie, we're in the gstream manual, section 3, and this one is called cd_winconsole. she's a lil cursor-drawing diva and honestly? she ate. πŸŽ€


✨ NAME ✨

cd_winconsole β€” the girl who draws you a cursor that's half Windows, half console, and fully iconic πŸ’…


🌸 SYNOPSIS 🌸

#include <gstream.h>

void cd_winconsole(BITMAP *bmp, int x, int y, int w, int h, int clr,
bool ins);

like. that's the whole signature. seven args, no notes. 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the vibe: this function draws a mixture of a win cursor and a console cursor. two cursor aesthetics, one function, main character energy fr fr. 😭✨

and the way it works is:

  • when it's the insert cursor, it looks like a win cursor β€” that's a vertical line, literally | πŸ‘‘
  • when it's the overwrite cursor, it's giving console overwrite cursor β€” it covers the letter, no cap πŸ’€

so yeah, one function, two moods, depending on that bool ins.

now, the preferred dimensions for this cursor β€” and bestie, important, you have to set them manually, she will not do it for you πŸ™ˆ β€” are:

(1, gbuf::DYNAMIC_CURSOR_SIZE, gbuf::DYNAMIC_CURSOR_SIZE,
gbuf::DYNAMIC_CURSOR_SIZE)

but lowkey? the first argument can be bigger if you want a broader cursor. so go off, make her wide, she'll slay either way. πŸ”₯

ngl the "set them manually" part is not a suggestion, it's a requirement. the function is not gonna guess your dimensions for you, bestie. do your part. πŸ’–

🌈 SEE ALSO 🌈

like obviously go read those too, they're her sisters. iykyk ⭐


and that's the page!! πŸŽ€ this was gstream, version 1.6, and yeah that's the whole thing β€” mwah, go draw some cursors, you're doing amazing sweetie πŸ’œπŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from