Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > dos screens in c

Reply
Thread Tools

dos screens in c

 
 
Rick
Guest
Posts: n/a
 
      02-21-2006
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


 
Reply With Quote
 
 
 
 
Keith Thompson
Guest
Posts: n/a
 
      02-21-2006
"Rick" <(E-Mail Removed)> writes:
> 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.


It's not possible to do that in standard C on Linux, DOS, or any other
system. A program that does such a thing has to use system-specific
extensions. Try asking in a system-specific newsgroup.
comp.os.msdos.programmer *might* be a good place to ask, but I don't
read it myself; take a look at the newsgroup before posting.

--
Keith Thompson (The_Other_Keith) http://www.velocityreviews.com/forums/(E-Mail Removed) <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
 
Reply With Quote
 
 
 
 
Grumble
Guest
Posts: n/a
 
      02-22-2006
Rick wrote:
> 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.


<Waaay off-topic>
You might want to check http://www.gnu.org/software/screen/
 
Reply With Quote
 
Jack Klein
Guest
Posts: n/a
 
      02-22-2006
On Tue, 21 Feb 2006 22:38:29 GMT, "Rick"
<(E-Mail Removed)> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IOS DoS defense causes DoS to itself:) Igor MamuziŠ Cisco 2 05-19-2006 11:59 PM
Outsmarting DOS C compiler to print to USB printer -- use DOS interrupt? tomhr C Programming 27 01-12-2006 04:09 PM
[newbie]How to install python under DOS and is there any Wxpython can be installed under dos? john san Python 19 02-18-2005 12:05 PM
Unable to run MS-DOS in Windows and DOS properties tabs missing Don Computer Support 5 02-11-2004 07:20 PM
Executing DOS (yes, DOS) program from within Python? Ben Fairbank Python 2 10-07-2003 08:51 AM



Advertisments