473,385 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

dos screens in 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
Feb 21 '06 #1
3 1461
"Rick" <ri**************@ntlworld.com> 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) ks***@mib.org <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.
Feb 21 '06 #2
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/
Feb 22 '06 #3
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
Feb 22 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Obscurr | last post by:
hi, Is there a way of controlling (i.e., using windows.open ) which screen new windows are to appear in, when I have multiple screens ? Is that a programming issue, or does it have to do with...
2
by: Matt C. | last post by:
I've got an application that has several distinct functions. I'd like to make these available as different screens that the user can switch between within a single form, using commands from the...
4
by: Troy Fillerup | last post by:
Hello, I am writing a program in c# that will be running on a system with multiple screens. I would like to run my program on one screen and then force all other apps onthe system to come up on...
5
by: Matt C. | last post by:
I've got an application that has several distinct purposes. I'd like to make these available as different screens that the user can switch between within a single form, using commands from the...
9
by: Quina | last post by:
Hi. Is there someone that can tell me how can I have multiple screens on the the same form, displaying only on at the time? Thank you all for any replys. Joćo Carias
1
by: singlal | last post by:
Hi, We are looking for options of converting CICS screens to a GUI application (.net, Java, etc.) to increase the usability of the screens. We would like to keep the underlying logic and...
25
by: Michelle | last post by:
Hi, I am new it vb.net and am looking at writing for touch screens as one of my clients wants their application written for touch screens. I'm sure someone that done this before. Are there links...
4
by: Barret R | last post by:
I was wondering, how do you create those terminal 'screens', like how irssi is designed? I'm not sure the exact word to use... Anyway, what library would I use? And would I be able to replicate it...
7
by: Bill Nguyen | last post by:
This has been posted before but received no response: I need to arrange window screens on the total area of a mulitple-mopnitor desktop. As an example, below is the bound info for my 2-monitor...
0
by: tgips | last post by:
I am creating slide shows using the screens option on Flash 8. I have inserted forward Buttons and Back Buttons to move through the screens. I am using the Behaviors panel to prescribe the actions....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.