A small, helpful routine
A small item this week because it's Thanksgiving.
In DG, you can close all open windows with a statement like this:
IDL> while !d.window ne -1 do wdelete, !d.window
Here's my two-line equivalent in NG, wrapped into a procedure:
w = getwindows()
if n_elements(w) gt 0 then foreach i, w do i.close
Call this routine with:
to close all open NG windows.