ATTACH(nged)

Opens a display window.

πŸ“… published 7.44.0, from nixpkgs unstable

🫢 ATTACH(nged): a BRL-CAD User Commands page, but make it group-chat πŸ’–

🌸 NAME 🌸

attach β€” Opens a display window. Slay, that’s the whole assignment πŸ’…

✨ SYNOPSIS ✨

attach [-d display_string] [-i init_script] [-n name] [-t is_toplevel] [-W width] [-N height] [-S square_size] [win_type]

πŸ’… DESCRIPTION πŸ’…

This command is used to open a display window, bestie. The set of supported window types includes X and ogl. The synopsis has this exact flag lineup: -d display_string, -i init_script, -n name, -t is_toplevel, -W width, -N height, -S square_size, plus the optional [win_type].

🚨 Important vibe check: attach no longer releases previously attached display windows (i.e., multiple attaches are supported). So yes, you can stack them. To destroy a display window, use the release command. Periodt.

πŸŽ€ EXAMPLES πŸŽ€

These examples demonstrate the use of the attach command to open ogl and X display windows. Iconic behavior, honestly.

Example 1. Opening an ogl display window

mged> attach ogl

Opens an ogl display window named .dm_ogl0 (assuming this is the first ogl display window opened using the default naming scheme). First one ate πŸ’–

mged> attach ogl

Opens an ogl display window named .dm_ogl1. Number two said β€œI’m also main character energy” ✨

mged> attach -n myOgl -W 720 -N 486 ogl

Opens a 720 x 486 OpenGL display window named myOgl. Custom name, custom size, fully that girl πŸŽ€

mged> attach -n myX -d remote_host:0 -i myInitX

Opens an X display window named myX on remote_host that is initialized by myInit. myInit might contain user-specified bindings like those found in the default bindings. Remote-host realness πŸ¦‹

mged> toplevel.t

A top-level window named .t was created.

mged> attach -t 0 -S 800 -n .t.ogl ogl

Opens a 800 x 800 OpenGL display window named .t.ogl that is not a top-level window. Lowkey nested, highkey iconic πŸ’…

mged> button .t.dismiss -text Dismiss -command "release .t.ogl; destroy .t"

Creates a button that dismisses the display manager, etc. A little dismiss button with main character energy 😭

mged> pack .t.ogl -expand 1 -fill both

Packs the display manager inside .t.

mged> pack .t.dismiss

Packs the Dismiss button inside .t.

mged> attach

Lists the help message that includes the valid display types. When in doubt, ask the help message, bestie 🫢

πŸ‘‘ AUTHOR πŸ‘‘

BRL-CAD Team. Kings, queens, and legends of the manual-page world πŸ‘‘

πŸ› BUG REPORTS πŸ›

Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org. If something is giving broken, tell the team, not the group chat πŸ’€


This page is brought to you by BRL-CAD, filed under the ATTACH(nged) manual label. Bye bestie, stay hydrated and keep those display windows iconic πŸ’–πŸ¦‹

πŸ“¦ where this page comes from