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
Opens an ogl display window named .dm_ogl0 (assuming this is the first ogl display window opened using the default naming scheme)
Opens an ogl display window named .dm_ogl1.
attach -n myOgl -W 720 -N 486 ogl
Opens a 720 x 486 OpenGL display window named myOgl.
attach -n myX -d remote_host:0 -i myInitX
Open 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.
A top-level window named .t was created.
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.
button .t.dismiss -text Dismiss -command "release .t.ogl; destroy .t"
Creates a button that dismisses the display manager, etc.
pack .t.ogl -expand 1 -fill both
Packs the display manager inside .t.
Packs the Dismiss button inside .t.
Lists the help message that includes the valid display types.