![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 | |
|
Newbie
Join Date: Mar 2005
Location: South Wales, UK
Posts: 9
Rep Power: 0
![]() |
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:
|
|
|
|
|
|
|
#2 |
|
Expert Programmer
|
Do you mean a fake Unix - looking text box or a proper command line shell (which would have to be coded in C)?
|
|
|
|
|
|
#3 | |
|
Newbie
Join Date: Mar 2005
Location: South Wales, UK
Posts: 9
Rep Power: 0
![]() |
A proper command line shell. How come it has to be done in C?
__________________
Mr Lee Quote:
|
|
|
|
|
|
|
#4 |
|
Programming Guru
![]() |
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...
__________________
|
|
|
|
|
|
#5 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
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#...
|
|
|
|
|
|
#6 |
|
Programming Guru
![]() ![]() ![]() |
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." |
|
|
|
|
|
#7 |
|
Programming Guru
![]() |
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...
__________________
|
|
|
|
|
|
#8 | |
|
Expert Programmer
|
Quote:
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 :-) |
|
|
|
|
|
|
#9 | |
|
Newbie
Join Date: Mar 2005
Location: South Wales, UK
Posts: 9
Rep Power: 0
![]() |
Thanks for all your help. Much appreciated.
![]()
__________________
Mr Lee Quote:
|
|
|
|
|
|
|
#10 |
|
Expert Programmer
|
Should I post the code then? - if not there are equivalents you can find on PSC and by googling.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|