GF_CONSOLE
if (gp->g_flags & GF_CONSOLE) {
wa.console = (gp->g_flags & GF_CONSOLE) != 0;
gp->g_flags |= GF_CONSOLE; /* we are console! */