get_x(3)

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

✨ NAME ✨

get_x β€” bestie, this is the lil gstream function that tells you where your cursor's at horizontally πŸ’–

It lives in the gstream manual, section 3 (that's the library-calls section, iykyk πŸŽ€), so if you're out here reading get_x(3) you're in exactly the right place, no cap.


🌸 SYNOPSIS 🌸

#include <gstream.h>

int get_x();

So like, you gotta pull in gstream.h first β€” that's the whole vibe, one include, one function, we love a low-effort queen πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so here's the tea: get_x() returns the cursor's x position. That's it. That's the whole function. She's short, she's sweet, she's giving main character energy with a one-line job description 🫢

The x position of the cursor β€” that's the horizontal one, the side-to-side one, the one that goes left and right ✨ Not the y. We do not do y here. That's somebody else's problem, fr fr.

Return type is int, so you're getting a whole number back, and you can just... use it. Store it, print it, math it, whatever your heart desires πŸ’–

not me being obsessed with a function that does literally one thing 😭 iconic behaviour honestly

🌈 SEE ALSO 🌈

  • gstream-goto_x(3) β€” the other half of the duo!! πŸŽ€ if get_x is the one asking "where are we bestie", gstream-goto_x(3) is the one going "say less, I got you" and moving the cursor there πŸ’« go read her too, they're a set, they're a package deal, they ate πŸ”₯

okay and that's the whole page!! short and sweet and honestly? a slay ✨

this one's from the gstream manual, version 1.6 β€” that's the version, that's the whole footer, no date on this one, so just hold onto the 1.6 and the gstream name and you're golden πŸ’œ

mwah, go write some cursed terminal code bestie πŸ«ΆπŸ’…πŸŒŸ

πŸ“¦ where this page comes from