mirror of
https://github.com/simh/simh.git
synced 2026-01-25 19:56:25 +00:00
Added reporting of the QVSS window focus release key when Video Windows is created
This commit is contained in:
@@ -509,23 +509,23 @@ if ((cptr == NULL) || (!*cptr))
|
||||
return SCPE_ARG;
|
||||
cptr = get_glyph (cptr, gbuf, 0);
|
||||
if (MATCH_CMD(gbuf, "MICROVAX") == 0) {
|
||||
sys_model = 0;
|
||||
vc_dev.flags = vc_dev.flags | DEV_DIS; /* disable QVSS */
|
||||
lk_dev.flags = lk_dev.flags | DEV_DIS; /* disable keyboard */
|
||||
vs_dev.flags = vs_dev.flags | DEV_DIS; /* disable mouse */
|
||||
strcpy (sim_name, "MicroVAX I (KA610)");
|
||||
reset_all (0); /* reset everything */
|
||||
}
|
||||
sys_model = 0;
|
||||
vc_dev.flags = vc_dev.flags | DEV_DIS; /* disable QVSS */
|
||||
lk_dev.flags = lk_dev.flags | DEV_DIS; /* disable keyboard */
|
||||
vs_dev.flags = vs_dev.flags | DEV_DIS; /* disable mouse */
|
||||
strcpy (sim_name, "MicroVAX I (KA610)");
|
||||
reset_all (0); /* reset everything */
|
||||
}
|
||||
else if (MATCH_CMD(gbuf, "VAXSTATION") == 0) {
|
||||
sys_model = 1;
|
||||
vc_dev.flags = vc_dev.flags & ~DEV_DIS; /* enable QVSS */
|
||||
lk_dev.flags = lk_dev.flags & ~DEV_DIS; /* enable keyboard */
|
||||
vs_dev.flags = vs_dev.flags & ~DEV_DIS; /* enable mouse */
|
||||
strcpy (sim_name, "VAXStation I (KA610)");
|
||||
reset_all (0); /* reset everything */
|
||||
}
|
||||
sys_model = 1;
|
||||
vc_dev.flags = vc_dev.flags & ~DEV_DIS; /* enable QVSS */
|
||||
lk_dev.flags = lk_dev.flags & ~DEV_DIS; /* enable keyboard */
|
||||
vs_dev.flags = vs_dev.flags & ~DEV_DIS; /* enable mouse */
|
||||
strcpy (sim_name, "VAXStation I (KA610)");
|
||||
reset_all (0); /* reset everything */
|
||||
}
|
||||
else
|
||||
return SCPE_ARG;
|
||||
return SCPE_ARG;
|
||||
return SCPE_OK;
|
||||
#else
|
||||
return SCPE_NOFNC;
|
||||
|
||||
@@ -969,23 +969,23 @@ if ((cptr == NULL) || (!*cptr))
|
||||
return SCPE_ARG;
|
||||
cptr = get_glyph (cptr, gbuf, 0);
|
||||
if (MATCH_CMD(gbuf, "MICROVAX") == 0) {
|
||||
sys_model = 0;
|
||||
vc_dev.flags = vc_dev.flags | DEV_DIS; /* disable QVSS */
|
||||
lk_dev.flags = lk_dev.flags | DEV_DIS; /* disable keyboard */
|
||||
vs_dev.flags = vs_dev.flags | DEV_DIS; /* disable mouse */
|
||||
strcpy (sim_name, "MicroVAX II (KA630)");
|
||||
reset_all (0); /* reset everything */
|
||||
}
|
||||
sys_model = 0;
|
||||
vc_dev.flags = vc_dev.flags | DEV_DIS; /* disable QVSS */
|
||||
lk_dev.flags = lk_dev.flags | DEV_DIS; /* disable keyboard */
|
||||
vs_dev.flags = vs_dev.flags | DEV_DIS; /* disable mouse */
|
||||
strcpy (sim_name, "MicroVAX II (KA630)");
|
||||
reset_all (0); /* reset everything */
|
||||
}
|
||||
else if (MATCH_CMD(gbuf, "VAXSTATION") == 0) {
|
||||
sys_model = 1;
|
||||
vc_dev.flags = vc_dev.flags & ~DEV_DIS; /* enable QVSS */
|
||||
lk_dev.flags = lk_dev.flags & ~DEV_DIS; /* enable keyboard */
|
||||
vs_dev.flags = vs_dev.flags & ~DEV_DIS; /* enable mouse */
|
||||
strcpy (sim_name, "VAXStation II (KA630)");
|
||||
reset_all (0); /* reset everything */
|
||||
}
|
||||
sys_model = 1;
|
||||
vc_dev.flags = vc_dev.flags & ~DEV_DIS; /* enable QVSS */
|
||||
lk_dev.flags = lk_dev.flags & ~DEV_DIS; /* enable keyboard */
|
||||
vs_dev.flags = vs_dev.flags & ~DEV_DIS; /* enable mouse */
|
||||
strcpy (sim_name, "VAXStation II (KA630)");
|
||||
reset_all (0); /* reset everything */
|
||||
}
|
||||
else
|
||||
return SCPE_ARG;
|
||||
return SCPE_ARG;
|
||||
return SCPE_OK;
|
||||
#else
|
||||
return SCPE_NOFNC;
|
||||
|
||||
10
VAX/vax_vc.c
10
VAX/vax_vc.c
@@ -184,6 +184,8 @@ MTAB vc_mod[] = {
|
||||
&vc_set_enable, NULL, NULL, "Enable VCB01 (QVSS)" },
|
||||
{ MTAB_XTD|MTAB_VDV, 0, NULL, "DISABLE",
|
||||
&vc_set_enable, NULL, NULL, "Disable VCB01 (QVSS)" },
|
||||
{ MTAB_XTD|MTAB_VDV, 0, "RELEASEKEY", NULL,
|
||||
NULL, &vid_show_release_key, NULL, "Display the window focus release key" },
|
||||
{ MTAB_XTD|MTAB_VDV|MTAB_VALR, 004, "ADDRESS", "ADDRESS",
|
||||
&set_addr, &show_addr, NULL, "Bus address" },
|
||||
{ MTAB_XTD|MTAB_VDV|MTAB_VALR, 0, "VECTOR", "VECTOR",
|
||||
@@ -629,6 +631,14 @@ if (dptr->flags & DEV_DIS)
|
||||
r = vid_open (VC_XSIZE, VC_YSIZE); /* display size */
|
||||
if (r != SCPE_OK)
|
||||
return r;
|
||||
printf ("QVSS Display Created. ");
|
||||
vid_show_release_key (stdout, NULL, 0, NULL);
|
||||
printf ("\n");
|
||||
if (sim_log) {
|
||||
fprintf (sim_log, "QVSS Display Created. ");
|
||||
vid_show_release_key (sim_log, NULL, 0, NULL);
|
||||
fprintf (sim_log, "\n");
|
||||
}
|
||||
sim_activate_abs (&vc_unit, tmxr_poll);
|
||||
return auto_config (NULL, 0); /* run autoconfig */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user