get_x(3)
β¨ 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!! π ifget_xis 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
- fedora 43: gstream-devel 1.6-35.fc43 Β· Giftware
- fedora 43: gstream-devel 1.6-35.fc43 Β· Giftware
- fedora 44: gstream-devel 1.6-36.fc44 Β· Giftware
- fedora 44: gstream-devel 1.6-36.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms