'\" t
.\"     Title: ATTACH
.\"    Author: [see the "AUTHOR" section]
.\" Generator: DocBook XSL-NS Stylesheets v1.76.1 <http://docbook.sf.net/>
.\"      Date: 04/13/2022
.\"    Manual: BRL-CAD User Commands
.\"    Source: BRL-CAD
.\"  Language: English
.\"
.TH "ATTACH" "nged" "04/13/2022" "BRL\-CAD" "BRL\-CAD User Commands"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
attach \- Opens a display window\&.
.SH "SYNOPSIS"
.HP \w'\fBattach\fR\ 'u
\fBattach\fR [\-d\ \fIdisplay_string\fR] [\-i\ \fIinit_script\fR] [\-n\ \fIname\fR] [\-t\ \fIis_toplevel\fR] [\-W\ \fIwidth\fR] [\-N\ \fIheight\fR] [\-S\ \fIsquare_size\fR] [\fIwin_type\fR]
.SH "DESCRIPTION"
.PP
This command is used to open a display window\&. The set of supported window types includes X and ogl\&. It should be noted that
\fBattach\fR
no longer releases previously attached display windows (i\&.e\&., multiple attaches are supported)\&. To destroy a display window, use the
\fBrelease\fR
command\&.
.SH "EXAMPLES"
.PP
These examples demonstrate the use of the
\fBattach\fR
command to open ogl and X display windows\&.
.PP
\fBExample\ \&1.\ \&Opening an ogl display window\fR
.PP
mged> \fBattach ogl\fR
.RS 4
Opens an ogl display window named \&.dm_ogl0 (assuming this is the first ogl display window opened using the default naming scheme)
.RE
.PP
mged \fBattach ogl\fR
.RS 4
Opens an ogl display window named \&.dm_ogl1\&.
.RE
.PP
mged>\fBattach \-n myOgl \-W 720 \-N 486 ogl\fR
.RS 4
Opens a 720 x 486 OpenGL display window named myOgl\&.
.RE
.PP
mged>\fBattach \-n myX \-d remote_host:0 \-i myInitX\fR
.RS 4
Open an X display window named myX on remote_host that is initialized by myInit\&.
.sp
myInit might contain user\-specified bindings like those found in the default bindings\&.
.RE
.PP
mged>\fBtoplevel\&.t\fR
.RS 4
A top\-level window named \&.t was created\&.
.RE
.PP
mged>\fBattach \-t 0 \-S 800 \-n \&.t\&.ogl ogl\fR
.RS 4
Opens a 800 x 800 OpenGL display window named \&.t\&.ogl that is not a top\-level window\&.
.RE
.PP
mged>\fBbutton \&.t\&.dismiss \-text Dismiss \-command "release \&.t\&.ogl; destroy \&.t"\fR
.RS 4
Creates a button that dismisses the display manager, etc\&.
.RE
.PP
mged>\fBpack \&.t\&.ogl \-expand 1 \-fill both\fR
.RS 4
Packs the display manager inside \&.t\&.
.RE
.PP
mged>\fBpack \&.t\&.dismiss\fR
.RS 4
Packs the Dismiss button inside \&.t\&.
.RE
.PP
mged>\fBattach\fR
.RS 4
Lists the help message that includes the valid display types\&.
.RE
.SH "AUTHOR"
.PP
BRL\-CAD Team
.SH "BUG REPORTS"
.PP
Reports of bugs or problems should be submitted via electronic mail to
devs@brlcad\&.org
