GET_XINFO(4)

πŸ“¦
version 2.5.3 Β· 2 versions
, in nixos 26.05

Hiii bestie πŸ’– welcome to Get_XInfo from the special file manual β€” the whole vibe is get a tool's X11 attributes. Yes, X11. Buckle up, it’s cute but specific.

🌸 NAME 🌸

Get_XInfo β€” get a tool's X11 attributes.

✨ SYNOPSIS ✨

Get_XInfo(out string display,
        out string visual,
        out integer depth
        [in messageID commission]);

πŸ’– DESCRIPTION πŸ’–

Okay so the Get_XInfo request reports the X11 attributes of the window you optionally specify, or of the window primarily associated with the recipient procid if no window is specified. Slay, very window-aware.

Here’s the arg tea:

  • display β€” an X11 display.
  • visual β€” an X11 visual class. This is what determines how a pixel will be displayed as a color. Valid values are:
    • DirectColor
    • PseudoColor
    • StaticGray
    • GrayScale
    • StaticColor
    • TrueColor
    • Caret
  • depth β€” the number of bits in a pixel.
  • commission β€” the ID of the ongoing request with respect to which X11 attributes are being set or reported.

πŸ¦‹ APPLICATION USAGE πŸ¦‹

Xt applications can use the ttdt_session_join(3) and ttdt_message_accept(3) functions to register for β€” and transparently process β€” the Get_XInfo request. Also, Get_XInfo can be sent by ttdt_sender_imprint_on(3). Iconic.

Since the handler may be running on a different host, it is almost always better to return a display value of hostname:n[. n] instead of :n[. n].) 🫢

The commission argument is useful to the extent that the handler employs different attributes for the different operations it may be carrying out.

πŸ“ EXAMPLES πŸ“

You can send the Get_XInfo request like this, bestie:

       Tt_message msg = tttk_message_create(0, TT_REQUEST, TT_SESSION,
                               the_recipient_procid, TTDT_GET_XINFO,
                               my_callback);
       tt_message_arg_add(msg, TT_OUT, Tttk_string, 0);
       tt_message_arg_add(msg, TT_OUT, Tttk_string, 0);
       tt_message_iarg_add(msg, TT_OUT, Tttk_integer, 0);
       tt_message_send(msg);

πŸ‘‘ SEE ALSO πŸ‘‘


Signing off from the special file manual πŸ’œ β€” there was no separate source/version/date footer to share, just the manual name repeated, so that’s the whole tea. Byeee πŸ’…βœ¨

πŸ“¦ where this page comes from