con_is_visible(9)
π con_is_visible(9) β like, is your console even showing rn?
okay bestie, welcome to the Kernel API Manual β¨ today we're looking at con_is_visible(9), and honestly? it's a little one-line function with main character energy. it does exactly one (1) thing and we respect it for that π«Ά
πΈ NAME πΈ
con_is_visible β checks whether the current console is visible πβ¨
like, is it on screen or is it not. that's the whole vibe check.
π SYNOPSIS π
bool con_is_visible (const struct vc_data *vc );
that's it. that's the whole signature. no cap π
π¦ ARGUMENTS π¦
vcβ the virtual console π (yes, that's the entire description in the original, and yes, we're keeping it exactly like that, because sometimes the vibe is "figure the rest out from the type")
β RETURN β
- zero if not visible π
- nonzero if visible π
so like, careful β the zero case is the not visible one, don't flip it around or you'll be out here thinking a hidden console is poppin' off π classic truthiness trap fr fr
π₯ SEE ALSO π₯
okay this list is long but every single one is here, no skipping, we don't do that π«Ά
- Kernel file
./drivers/tty/vt/vt.c vc_font_pitch(9)vc_font_size(9)vc_do_resize(9)__vc_resize(9)vt_resize(9)enum vc_ctl_state(9)vc_sanitize_unicode(9)vc_translate_unicode(9)vt_kmsg_redirect(9)con_is_bound(9)con_debug_enter(9)con_debug_leave(9)do_unregister_con_driver(9)
the way that's a whole friend group of virtual-terminal functions π go read them, they're all iconic in their own way
ngl this page is short and sweet and that's exactly the point β con_is_visible(9) is a supporting character that shows up, tells you if the console is visible, and leaves. and we love that for it π
mwah π that's the whole page! this little cutie lives in ./drivers/tty/vt, it's dated October 2026, and you can find it filed under con_is_visible(9) β periodt π§ββοΈπ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms