|attach [-d display_string] [-i init_script] [-n name] [-t is_toplevel] [-W width] [-N height] [-S square_size] [win_type]|
This command is used to open a display window. The set of supported window types includes X and ogl. It should be noted that attach no longer releases previously attached display windows (i.e., multiple attaches are supported). To destroy a display window, use the release command.
These examples demonstrate the use of the attach command to open ogl and X display windows.
Example 1. Opening an ogl display window
mged> attach oglOpens an ogl display window named .dm_ogl0 (assuming this is the first ogl display window opened using the default naming scheme)
mged attach oglOpens an ogl display window named .dm_ogl1.
mged>attach -n myOgl -W 720 -N 486 oglOpens a 720 x 486 OpenGL display window named myOgl.
mged>attach -n myX -d remote_host:0 -i myInitXOpen 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.
mged>toplevel.tA top-level window named .t was created.
mged>attach -t 0 -S 800 -n .t.ogl oglOpens a 800 x 800 OpenGL display window named .t.ogl that is not a top-level window.
mged>button .t.dismiss -text Dismiss -command "release .t.ogl; destroy .t"Creates a button that dismisses the display manager, etc.
mged>pack .t.ogl -expand 1 -fill bothPacks the display manager inside .t.
mged>pack .t.dismissPacks the Dismiss button inside .t.
mged>attachLists the help message that includes the valid display types.
Reports of bugs or problems should be submitted via electronic mail to <firstname.lastname@example.org>, or via the "cadbug.sh" script.