 |
|
|
 |
|
 |
Hello Columbus-MCSD
You wrote a follow-up to this article in 2007 and you forgot to put a link to your new work onto this page:
Terminal Control Library (C# VT100/ANSI/XTERM SSH Telnet)
You write there:
... This library is an attempt at creating a library based on the "Poderosa" project which IMO is the best terminal emulator.
So if you think Poderosa is better than AckTerm, why don't you inform the readers of this article about that?
But even your Poderosa article is meanwhile outdated today in 2011.
The latest version of Poderosa code can be found here:
Sourceforge Poderosa Project (latest Beta versions)
with extended functionality.
Nevertheless Poderosa is a huge project with nearly no documentation.
So it is worth studying your work too.
Elmü
|
|
|
|
 |
|
 |
Is there a way to use this code to connect using serial port and not telnet or I need to look for it in "Poderosa" ?
|
|
|
|
 |
|
|
 |
|
|
 |
|
 |
Hi There,
I am getting a "User authentication failed" "SSH_MSG_USERAUTH_FAILURE" error.
The strang thing is that it works on my Ubuntu box but not on my GenToo box. Please help.
Thanks,
../mark
../mk_bt
|
|
|
|
 |
|
 |
I want to take this control and embed it into my C# software application. I believe the source code is freely available. Is this correct?
|
|
|
|
 |
|
 |
Hi Sardaan,
Firstly thank you for your good work.
I am however not able to get your code to work. I am using vs2008. I have even tried the precomiled .exe files in your zip. However no matter where I try to connect to It times out.
I am trying to connect via ssh to a device on my local network. Say 192.168.1.1. If I use putty or SecureCRT I can ssh to it fine. However I can't with your app.
Any help is very much appreciated.
cheers.
|
|
|
|
 |
|
 |
Hi Sardaan,
How I can use your code for run some Command without GUI ?
I need send some command to my Server, but I dont need show UI.
I must send a string of my commands.
Can you help me ?
http://www.mahdavy.com
|
|
|
|
 |
|
 |
There is an error in your code that doesn't work at all.
You have a switch statement that has a case value of "\x1b" + "D" well
the value x1b is the same as writting x\001b however the \x1bD is not the same as \x001bD
since you are using the former rather than the latter it breaks because .net will assume that you meant \x01bd which isn't exactly what you were looking for. in .net Char and String are unicode so it is 2 bytes wide. It should be looking for \x001bD so it is a complete unicode char and the letter D in the string. Found a few others that I am working on resolving. Will give more details; I am also integrating Serial port communications; for dial up and TVI955 terminal.
|
|
|
|
 |
|
 |
I have noticed the code was very near what is posted on http://vt100.net while reviewing the VT500-Series Parser diagram showing the events and states. The code works in all cases what I have seen except if there is a intermediate screen with the final screen all returning from the Socket.EndReceive() during callback.
The following string reflects what sReceived is and ready to parse it. You will see how the intermediate screen lines (Please Wait...Loading) stay around onto the final screen. Knowing PowerTerm and other terminel client applications are able to parse it, I am wondering if it has something to do with the state, event, or escape code translation (Encoding.ASCII and Encoding.Default both have been attempted).
sReceived string below:
[H[2J\r\n\r\n\r\n\r\n TOPS Release 18.0.0.1 (Retail)\r\n MAIN MENU\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n PLEASE WAIT ... LOADING PROGRAMS\r\n\r\n[;H[2J\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0[m(0[2;1H\0\0\0\0\0lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk[3;1H\0\0\0\0\0x[3;78H\0\0\0\0\0x[4;1H\0\0\0\0\0x[4;78H\0\0\0\0\0x[5;1H\0\0\0\0\0mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj[m[7m(B[3;20H\0\0\0\0\0 [4;20H\0\0\0\0\0 TOPS Release 18.0 (Retail) [5;79H\0\0\0\0\0[m(0[2;78H\0\0\0\0\0qqk[m(B[3;20H\0\0\0\0\0 [3;78H\0\0\0\0\0 [m(0[3;80H\0\0\0\0\0x[m(B[4;20H\0\0\0\0\0 Select one of the following items: [4;78H\0\0\0\0\0 [m(0[4;80H\0\0\0\0\0xx[m(B [m(0[5;80H\0\0\0\0\0xx[6;80H\0\0\0\0\0xx[7;80H\0\0\0\0\0xx[8;80H\0\0\0\0\0xx[9;80H\0\0\0\0\0xx[10;80H\0\0\0\0\0xx[11;80H\0\0\0\0\0xx[12;80H\0\0\0\0\0xx[13;80H\0\0\0\0\0xx[14;80H\0\0\0\0\0xx[15;80H\0\0\0\0\0xx[16;80H\0\0\0\0\0xx[17;80H\0\0\0\0\0xx[18;80H\0\0\0\0\0xx[19;80H\0\0\0\0\0xx[20;80H\0\0\0\0\0xx[21;80H\0\0\0\0\0xx[m(B[22;26H\0\0\0\0\0Enter[22;32H\0\0\0\0\0Selection[22;42H\0\0\0\0\0or[22;45H\0\0\0\0\0(E)xit:[m(0[22;80H\0\0\0\0\0xmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj[5;79H\0\0\0\0\0[m[7m(B[3;18H\0\0\0\0\0 MAIN MENU - TOPS Release 18.0 (Retail) [5;5H\0\0\0\0\0 1. Transaction Processing [m[5;42H\0\0\0\0\010.[5;46H\0\0\0\0\0Other[5;52H\0\0\0\0\0Goods[5;58H\0\0\0\0\0and[5;62H\0\0\0\0\0Services-Out[7;6H\0\0\0\0\02.[7;9H\0\0\0\0\0Cash[7;14H\0\0\0\0\0Drawer[7;21H\0\0\0\0\0Balancing[7;42H\0\0\0\0\011.[7;46H\0\0\0\0\0Clock[7;52H\0\0\0\0\0In/Clock[7;61H\0\0\0\0\0Out[9;6H\0\0\0\0\03.[9;9H\0\0\0\0\0Daily[9;15H\0\0\0\0\0Reports[9;42H\0\0\0\0\012.[9;46H\0\0\0\0\0Manual[9;53H\0\0\0\0\0Processing[11;6H\0\0\0\0\04.[11;9H\0\0\0\0\0Monthly[11;17H\0\0\0\0\0Reports[11;42H\0\0\0\0\013.[11;46H\0\0\0\0\0Printer[11;54H\0\0\0\0\0Control[13;6H\0\0\0\0\05.[13;9H\0\0\0\0\0Manager[13;17H\0\0\0\0\0Utilities[13;42H\0\0\0\0\014.[13;46H\0\0\0\0\0News[13;51H\0\0\0\0\0Maintenance[15;6H\0\0\0\0\06.[15;9H\0\0\0\0\0PFI[15;13H\0\0\0\0\0Processing[15;42H\0\0\0\0\015.[15;46H\0\0\0\0\0Communications[15;61H\0\0\0\0\0Utilities[17;6H\0\0\0\0\07.[17;9H\0\0\0\0\0Layaway[17;17H\0\0\0\0\0Forfeit[17;25H\0\0\0\0\0Processing[17;42H\0\0\0\0\016.[17;46H\0\0\0\0\0Repair[17;53H\0\0\0\0\0Processing[19;6H\0\0\0\0\08.[19;9H\0\0\0\0\0Store[19;15H\0\0\0\0\0Credit[19;22H\0\0\0\0\0Forfeit[19;30H\0\0\0\0\0Processing[19;42H\0\0\0\0\017.[19;46H\0\0\0\0\0Replace[19;54H\0\0\0\0\0Processing[21;6H\0\0\0\0\09.[21;9H\0\0\0\0\0Other[21;15H\0\0\0\0\0Goods[21;21H\0\0\0\0\0and[21;25H\0\0\0\0\0Services-In[5;79H\0\0\0\0\0[18;1H\0\0\0\0\0[23;1H\0\0\0\0\0[22;53H\0\0\0\0\0
|
|
|
|
 |
|
 |
Not sure why you are responding to my thread. But I would assume that the version isn't correctly adhering to the standard sequences or you are missing some values. What exactly is the "0xmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj" lines for?
All i see in the code is multi-sequence caret move or graphic selections. hence \x001b[;H is move cursor to 0,0. While \x001b[7;21H is move cursor to 7 row 21 column. But I see no commands telling it to wipe the screen... The only standard this thing applies to is the VT52, 100 & 220.
|
|
|
|
 |
|
 |
Hi Mate,
is it posible to connect to a Remote SSH Server??
could u please help me, because i dont want to say that im a skilled programmer (im a beginner) but i need this for my school Project i need to know how to connect from outside.
Thx for your answer
PS: the Terminal is very very nice
|
|
|
|
 |
|
 |
yes, using putty to connect ssh server remotely
|
|
|
|
 |
|
 |
Hello mate,
i know that its possible with putty but i wanted to know how it works with the terminal emulator!
but i fixed it because i modified the given file and added a property (sshport)
if someone is interested in my version pls tell me, but i first have to ask the author of this Project if i can give out my version(like i said im a beginner)
Have a nice day
|
|
|
|
 |
|
 |
I want to connect to SFTP Server using SSH Channel and list files on remote directory, upload file and download file.
I am not an expert in this area, please let me know how to achieve my targe using this code.
Thanks in Advance
|
|
|
|
 |
|
 |
I need to work programmatically, send commands and check the results that the ssh connection gives. i can connect to the ssh server but i can't find how to work programmtically with this Terminal Control Project. i mean, how to catch the text from the connection to check it, and send commands.
please help.
|
|
|
|
 |
|
|
 |
|
|
 |
|
 |
dear,
i tried the lib. and it is good. i used the write function to pass a parameter but i don't know how to execute it. it needs something like write line or something to tell end of line.
thnx
|
|
|
|
 |
|
 |
i need use on different language...
how to implement ..
thanks
|
|
|
|
 |
|
 |
Hello, is anyone here, the terminal client can encoding GB2312??
Help me.
|
|
|
|
 |
|
|
 |
|
 |
I had to go into the source and change all the forced Encoding from ASCII to Default.
From:
Encoding.ASCII
to
Encoding.Default
|
|
|
|
 |
|
 |
Hi,
I'm trying the sharpSsh demo to open ssh channel from my windows xp machine to linux machine.
After the successfully connection I'm trying to type some command but nothing happend (I can't see my typed command on screen).
from the debugger it's looks like the problem ocures from this line:
Console.Write( ssh.ReadResponse() );
Please help me with this issue.
Thanks
Tal
|
|
|
|
 |