TT_X_SESSION(3)
π NAME π
okay bestie, welcome to the tt_X_session(library call) page β¨
tt_X_sessionβ return the session associated with an X window system display π
πΈ SYNOPSIS πΈ
include this header and call it like this, fr fr:
#include &<Tt/tt_c.h>
char *tt_X_session(
const char *xdisplaystring);
π¦ DESCRIPTION π¦
The tt_X_session function returns the session associated with the named X window system display. iconic behavior, honestly π
The application can call tt_X_session before it calls tt_open(3). yes bestie, before πβ¨
The xdisplaystring argument is the name of an X display server; for example, somehost:0 or :0. literally just the display name π
β RETURN VALUE β
Upon successful completion, the tt_X_session function returns the identifier for the ToolTalk session associated with the named X window system display. slay π
The application can use tt_ptr_error(3) to extract one of the following Tt_status values from the returned pointer:
TT_OKβ the operation completed successfully β¨TT_ERR_SESSIONβ thexdisplaystringdoes not name an X display πTT_ERR_POINTERβ thexdisplaystringisNULLπ
π APPLICATION USAGE π
The application should use tt_free(3) to free any data stored in the address returned by the ToolTalk API. cleanup era, no cap π«Άπ§
π₯ SEE ALSO π₯
Tt/tt_c.h - Tttt_c(5), tt_ptr_error(3), tt_open(3), tt_free(3).
and thatβs the whole tt_X_session(library call) page, bestie π«Άπ β the footer is just tt_X_session(library call) with no extra source/version or date info listed, so thatβs the cute little sign-off π
β¨
π¦ where this page comes from
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms