On Tue, 21 Feb 2006 22:38:29 GMT, "Rick"
<ri**************@ntlworld.com> wrote in comp.lang.c:
In linux if you press alt+f1 Alt+f2 etc you get a different virtual screen
and can do so up to f6. Is it possible to write a program in c to do the
same in Dos? If so is it very difficult and what roughly is required.
Thanks Rick
You could probably do it in non-standard, platform-specific, off-topic
C in some horribly complicated way, but there is a much, much easier
way.
[very off-topic from here on down]
Make a directory somewhere. Create a shortcut to cmd.exe. Name the
short cut "F1". Copy the shortcut and paste 5 copies. Name the
copies "F2" through "F6".
Then do the following for each shortcut:
Highlight it. On the file menu, select Properties. On the "shortcut"
tab, put the cursor in the "shortcut key" box. For the shortcut named
"F1", press the three key combination Ctrl-Alt-F2, Ctrl-Alt-F2 for
"F2", and so on.
This might not take effect until you reboot. But then pressing
Ctrl-Alt-F1 will bring up a console windows with a command prompt.
I find Ctrl-Alt plus function key combination a better choice than
just Alt function key on Windows because a lot of Windows programs use
Alt function key shortcuts.
[ok, off-topic all done]
--
Jack Klein
Home:
http://JK-Technology.Com
FAQs for
comp.lang.c
http://c-faq.com/
comp.lang.c++
http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html