By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,708 Members | 2,080 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,708 IT Pros & Developers. It's quick & easy.

Windows equivalent of Linux Pseudo Terminals?

P: 2

I hope this is the best place to ask my question. I was wondering if there was such a thing as a pseudo terminal in Windows.

For those unfamiliar, in Linux/Unix one can create a pseudo terminal which to an application looks and acts like a regular com port (tty device in Linux-ease). The purpose of such a thing is to allow an application which communicates via a com port to remain the same (except for changing its com port name/number) but have another application intercept that serial data before it goes out to a "real" physical com port. I have used this on Linux to intercept serial data from an existing application to share it with other apps.
My code now needs to be ported to Windows and I was wondering if such a things as pseudo terminal existed there.

I was thinking virtual com port but in my mind I associate that with comms over a physical USB port so it isn't clear that the same thing can be accomplished.


Dec 23 '08 #1
Share this Question
Share on Google+
3 Replies

Expert 100+
P: 489
Not sure it it's what you're after, but you might want to take a look at Microsoft Virtual PC.
Dec 23 '08 #2

P: 2

Thanks for the reply but I think I found what I need (should have looked harder before posting). On sourceforge there is an project called com0com. It basically allows one to create virtual serial com port pairs, sending data to one virtual port is received on the other and vice-versa.

For me this means as long as I can get the installed application to use one of the virtual com pairs then my app can connect to the other and then onto one of the real physical COM ports (see illustration below).

App<===>VirtualCOMA<===>VirtualCOMB<===>MyApp<===> PhysicalCOM1

Dec 24 '08 #3

Expert 100+
P: 489
It's nice when you can solve your own problems ;) Good luck with your project.

Dec 24 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.