goto_row(3)

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

πŸ’– 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