goto_row(3)
π goto_row(3) π
okay bestie, welcome to the gstream manual, and today's main character is goto_row. yes she's a function. yes she's iconic. let's get into it π
β¨ NAME β¨
goto_row β the lil cutie who parks your cursor on a whole row instead of making you do math π
πΈ SYNOPSIS πΈ
#include <gstream.h>
void goto_row(int row);
π¦ DESCRIPTION π¦
So here's the vibe: goto_row moves the cursor to line number ROW. that's it. that's the whole job. and she eats every time π
here's the part that's lowkey genius though. if the font you're currently using has a height of 12, then
goto_row(4)
is exactly the same as
goto_y(4*12)
fr fr. literally identical. no cap.
β οΈ okay but hear me out β that equivalence only holds if you're rolling with the default line spacing. the moment you switch up your line spacing, all bets are off, because the actual formula is this:
y-coordinate = line_spacing * row
so yeah, it's giving "math but make it fashion" β¨. the row number gets multiplied by the line spacing, and that is where your y-coordinate lands. default spacing? cute, simple, done. custom spacing? still works, just don't go thinking it's the font height anymore π«Ά
π SEE ALSO π
go read those too, they're the friend group π
and that's the tea, bestie π this was goto_row from the gstream manual, version 1.6 β she's been slaying since forever and she'll keep slaying. mwah πβ¨
π¦ 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