A dtterm running **inside a full CDE/Motif window on SunOS** combines three visual layers: the *Motif window manager frame*, the *CDE titlebar styling*, and the *dtterm widget interior*. This creates the classic Solaris 2.x workstation look—distinct from plain dtterm or earlier SunOS terminals.

---

## 🖥️ What a real SunOS/Solaris dtterm window looked like

### Motif window frame  
The outer frame came from **mwm**, the Motif Window Manager. It had:
- Thick **3D beveled borders**  
- A **purple titlebar** on Sun systems (other vendors used different colors)  
- Square Motif buttons (minimize, maximize, close)  
- A slightly recessed content area  

### dtterm interior  
Inside the frame, dtterm itself used:
- **White background** with **black text** (default)  
- **Lucida Typewriter** or similar crisp monospace fonts  
- ANSI color support but no glow or CRT artifacts  
- A **Motif scrollbar** on the right  
- Blue selection highlight  

### Sun-specific CDE palette  
Sun’s CDE theme used:
- **Purple titlebars** (#6B4FA1 range)  
- **Teal and gray** accents  
- Light gray window backgrounds (#DCDCDC)  
- White terminal canvas  

This combination is what most people picture when they think of Solaris 2.4–2.6 era desktops.

---

## 🎨 A SunOS/Solaris-style dtterm inside a Motif/CDE window (HTML + CSS)

This version recreates:
- The Motif window frame  
- The Sun CDE purple titlebar  
- The dtterm interior  
- The scrollbar look (static, not functional)  

```html
<div class="cde-window">
  <div class="cde-titlebar">
    <span class="title">dtterm</span>
    <span class="buttons">
      <span class="btn"></span>
      <span class="btn"></span>
      <span class="btn"></span>
    </span>
  </div>

  <div class="cde-content">
    <div class="terminal">
      <p>SunOS 5.5.1</p>
      <p>$ echo "CDE dtterm on Solaris"</p>
    </div>
    <div class="scrollbar">
      <div class="thumb"></div>
    </div>
  </div>
</div>

<style>
body {
  background: #b6b6b6;
  font-family: "Courier New", monospace;
}

/* Outer Motif frame */
.cde-window {
  width: 700px;
  margin: 40px auto;
  background: #dcdcdc;
  border: 2px solid #6a6a6a;
  box-shadow:
    inset 2px 2px 0 #ffffff,
    inset -2px -2px 0 #7f7f7f;
}

/* Sun CDE purple titlebar */
.cde-titlebar {
  background: #6b4fa1;
  color: #ffffff;
  padding: 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  box-shadow:
    inset 1px 1px 0 #9d86c7,
    inset -1px -1px 0 #4a3575;
}

/* Motif buttons */
.buttons {
  display: flex;
  gap: 4px;
}

.btn {
  width: 12px;
  height: 12px;
  background: #dcdcdc;
  border: 1px solid #4a4a4a;
  box-shadow:
    inset 1px 1px 0 #ffffff,
    inset -1px -1px 0 #7f7f7f;
}

/* dtterm interior layout */
.cde-content {
  display: flex;
  border-top: 2px solid #6a6a6a;
}

/* Terminal area */
.terminal {
  flex: 1;
  background: #ffffff;
  padding: 20px;
  color: #000000;
  font-size: 16px;
  line-height: 1.3;
}

/* Motif scrollbar */
.scrollbar {
  width: 20px;
  background: #dcdcdc;
  border-left: 2px solid #6a6a6a;
  box-shadow:
    inset 2px 2px 0 #ffffff,
    inset -2px -2px 0 #7f7f7f;
  display: flex;
  justify-content: center;
}

.thumb {
  width: 14px;
  height: 40px;
  background: #c0c0c0;
  border: 1px solid #4a4a4a;
  margin-top: 10px;
  box-shadow:
    inset 1px 1px 0 #ffffff,
    inset -1px -1px 0 #7f7f7f;
}

/* CDE selection highlight */
.terminal ::selection {
  background: #2a4f9e;
  color: #ffffff;
}
</style>
```

---

## 🧩 How this matches a real SunOS/Solaris dtterm window

- The **purple titlebar** and **Motif bevels** match Sun’s CDE theme.  
- The **white terminal background** and **black text** reflect dtterm defaults.  
- The **scrollbar** uses Motif’s squared, beveled style.  
- The **Lucida-like monospace font** and crisp rendering match workstation displays.  
- The **window frame** uses the correct light‑top/dark‑bottom Motif shading.  

This is the closest visual approximation to what you’d see on a SPARCstation running Solaris 2.5.1 or 2.6 with CDE.

---

If you want to refine this further, the next step is choosing whether you want the **white‑on‑black dtterm variant** many sysadmins used, or a more complete **CDE desktop background** behind the window.
