Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 14th, 2005, 6:54 AM   #1
MrLee
Newbie
 
Join Date: Mar 2005
Location: South Wales, UK
Posts: 9
Rep Power: 0 MrLee is on a distinguished road
Post Terminal Emulator

Has anyone out there created a terminal emulator program? I currently use ICE.OFFSITE (from JRIVER) for work but I would like to create a version of this myself using VB. Any tips or pointers in the right direction would be appreciated.
__________________
Mr Lee
Quote:
The impossible is often the untried.
MrLee is offline   Reply With Quote
Old Mar 14th, 2005, 2:04 PM   #2
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
Do you mean a fake Unix - looking text box or a proper command line shell (which would have to be coded in C)?
Rory is offline   Reply With Quote
Old Mar 14th, 2005, 4:48 PM   #3
MrLee
Newbie
 
Join Date: Mar 2005
Location: South Wales, UK
Posts: 9
Rep Power: 0 MrLee is on a distinguished road
A proper command line shell. How come it has to be done in C?
__________________
Mr Lee
Quote:
The impossible is often the untried.
MrLee is offline   Reply With Quote
Old Mar 14th, 2005, 6:09 PM   #4
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 5 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
Visual basic can code command line programs, so it can be done.

All your doing is using the shell() function on user input (as a linux command) and using your program to make it into a windows command and then executing it showing the result on the screen...
__________________

tempest is offline   Reply With Quote
Old Mar 14th, 2005, 6:13 PM   #5
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
VB doesn't really do DOS. Well, it does (and I'm sure Rory will be all too happy to explain, with the help of one of his weird modules), but it's so much easier in C. You could try C#...
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Mar 14th, 2005, 8:35 PM   #6
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
its probably easier in VB actually... especially VB.NET... although, I'd code it as a console app in C#...
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Mar 14th, 2005, 9:18 PM   #7
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 5 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
nah, it's much easier in C either way. It just needs a simple backbone and code to switch the command and it's straight...
__________________

tempest is offline   Reply With Quote
Old Mar 15th, 2005, 5:21 PM   #8
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
Quote:
Originally Posted by Ooble
VB doesn't really do DOS. Well, it does (and I'm sure Rory will be all too happy to explain, with the help of one of his weird modules), but it's so much easier in C. You could try C#...
Well seeing as you brought it up...
OK you can actually program native (proper windows console) programs in VB. However it requires special modules that implement standard I/O and when you compile the EXE you'll either have to compile it manually (using the C compiler on the object files) or using a hacked compiler packaged in a nice GUI (which I'd be more than happy to supply).

If you're still interested I'll post the modules I found while googling (they seem pretty standard, it's the compiler that's "magical").

Also on the shell command, there are also methods of capturing a console app's output (e.g. ping) into a textbox, some more stable than others. However what you'd end up with would be more of a cmd rewrite than a BSD shell :-)
Rory is offline   Reply With Quote
Old Mar 16th, 2005, 10:17 AM   #9
MrLee
Newbie
 
Join Date: Mar 2005
Location: South Wales, UK
Posts: 9
Rep Power: 0 MrLee is on a distinguished road
Smile Thanks

Thanks for all your help. Much appreciated.
__________________
Mr Lee
Quote:
The impossible is often the untried.
MrLee is offline   Reply With Quote
Old Mar 17th, 2005, 2:38 PM   #10
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
Should I post the code then? - if not there are equivalents you can find on PSC and by googling.
Rory is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:49 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC