TICKIT_WINDOW_SET_CURSOR_POSITION(3)
π TICKIT_WINDOW_SET_CURSOR_POSITION β the cursor glow-up page π
okay bestie, so this is a section 3 page from the Library Functions Manual, and it's literally all about making the cursor on a TickitWindow do what you want. three lil functions, one big vibe. let's get into it π
β¨ NAME β¨
tickit_window_set_cursor_position, tickit_window_set_cursor_visible, tickit_window_set_cursor_shape β modify the cursor state on a window π±οΈβ¨
πΈ SYNOPSIS πΈ
#include <tickit.h>
void tickit_window_set_cursor_position(TickitWindow *win, int line, int col);
void tickit_window_set_cursor_visible(TickitWindow *win, bool visible);
void tickit_window_set_cursor_shape(TickitWindow *win, TickitCursorShape shape);
Link with -ltickit.
π¦ DESCRIPTION π¦
so here's the tea, bestie β β three separate functions, three separate cursor lewks, all on the same window:
tickit_window_set_cursor_position()sets the position within the given window where the terminal cursor would be displayed β if the window has the focus. it takeslineandcol, and that's where the cursor would chill. πtickit_window_set_cursor_visible()sets whether the terminal cursor is visible when the given window has the focus. so like,visible=trueand it's showing up to the function,visible=falseand it's ghosting everyone. π»tickit_window_set_cursor_shape()sets what shape the terminal cursor will have if the given window has the focus. shape-shifting cursor? it's giving main character energy fr fr. π
β οΈ okay but here's the thing that actually matters, no cap: none of these functions actually affect the input focus directly. they do NOT grab focus, they do NOT steal focus, they simply set what the state of the cursor will be if the given window has the input focus. it's like picking out your outfit for a party you might not even get invited to π
and if you actually wanna set the input focus? that's a whole different function, bestie β go see tickit_window_take_focus(3). that one's the one that pulls up. π₯
β RETURN VALUE β
these functions all return no value. literally nothing. they're void, they do their thing, they don't report back. silent icons. π
π«Ά SEE ALSO π«Ά
and that's the whole page, bestie!! this was the TICKIT_WIN...OR_POSITION(3) section 3 entry, from the Library Functions Manual β go forth and make your cursor iconic πβ¨
π¦ where this page comes from
- alpine 3.24: libtickit-doc 0.4.6-r0 Β· MIT
- debian bookworm: libtickit-dev 0.4.3-1 Β· MIT
- debian trixie: libtickit-dev 0.4.3-2 Β· MIT
- fedora 43: libtickit-devel 0.4.5-2.fc43 Β· MIT
- fedora 43: libtickit-devel 0.4.5-2.fc43 Β· MIT
- fedora 44: libtickit-devel 0.4.5-3.fc44 Β· MIT
- fedora 44: libtickit-devel 0.4.5-3.fc44 Β· MIT
- nixos 26.05: libtickit 0.4.5
- nixpkgs unstable: libtickit 0.4.6
- ubuntu jammy: libtickit-dev 0.4.1-1 Β· MIT
- ubuntu noble: libtickit-dev 0.4.3-1.1build1 Β· MIT
- ubuntu questing: libtickit-dev 0.4.3-2
- ubuntu resolute: libtickit-dev 0.4.3-2build1 Β· MIT
- ubuntu stonking: libtickit-dev 0.4.3-2build1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms