get_cursor_w(3)

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

✨ get_cursor_w β€” the gstream manual, bestie edition ✨

okay so welcome to the gstream manual πŸ’– this is the page for get_cursor_w, and honestly? she's short, she's sweet, she's giving tiny but mighty πŸ¦‹


🌸 NAME 🌸

get_cursor_w β€” she tells you how wide your cursor is rn πŸ’…


✨ SYNOPSIS ✨

#include <gstream.h>

int get_cursor_w();

like. that's it. that's the whole vibe. no args, no drama, just a width πŸŽ€


πŸ’– DESCRIPTION πŸ’–

okay so here's the tea πŸ“ β€” get_cursor_w hands you back the input cursor width in the current insert-mode.

and the way that works is lowkey genius: it's mode-aware, bestie. so it depends on what mode the gstream is in when you call it πŸ‘‘

  • if the gstream is in insert mode when this function is called, it returns the cursor's insert width ✨
  • if it's in overwrite mode, it returns the cursor's overwrite width πŸ’«

so like. same function, different fits depending on the mode. main character energy fr fr 😭🫢

no cap: the return value is literally whatever width matches the mode you're in at call time. that's the whole bit. she ate πŸ’…

🌈 SEE ALSO 🌈


and that's the page!! mwah πŸ’œ stay hydrated, read your manpages, and remember: your cursor width is valid no matter what mode you're in πŸŽ€βœ¨

this has been get_cursor_w(3) from the gstream manual, version 1.6 β€” periodt πŸ’…πŸŒΈ

πŸ“¦ where this page comes from