Subject: Re: Remote Terminal with iPhone SDK

Re: Remote Terminal with iPhone SDK

From: Paresh Thakor <>
Date: Mon, 28 Jun 2010 16:10:31 +0530


Thanks for your kind reply... but you say that i am using libssh2 in proper way that i don't think right. Because i need to create a proper and complete terminal emulator and i resulted in simple UITextView based command/output system.

And i can't get what it PuTTY, i made some search on that but there's no proper answer for the suggestion. IF you know iPhone programming then suggest me something.

rc = libssh2_channel_request_pty( channel, "xterm"); This is my PTY function.
I don't know what to use to display terminal so it looks like real termina. See Team Viewer iPhone app, how they've created the app..! I want to create command-line emulator with all possible functionalities..!

Please gimme some idea i can make research over.


On Jun 28, 2010, at 3:55 PM, Peter Stuge wrote:

> Hi,
> Paresh Thakor wrote:
>> I'm trying to create iPhone app looks similar to Terminal
> ..
>> I think i might be doing something wrong from the beginning, might
>> be. Can anyone suggest me any sort of idea, how to prepare terminal
>> application using Libssh2..?
> The libssh2 part is trivial to do, and it sounds like you have
> finished that already.
> Your challenge is to develop a proper terminal emulator, which allows
> applications on the server to fully control the user's screen through
> sending of special command bytes.
>> And please also suggest that do i need to handle the command output
>> manually? i.e. pasring data for colored output, etc..!
> Yes, everything that is not simply adding one new character to the
> screen requires a complete terminal emulator.
> There are some portable codebases that you may be able to re-use.
> PuTTY is one of them.
>> Please leas me to the proper way.
> You are using libssh2 correct already, as long as you call
> libssh2_channel_request_pty() - but that is the easy part.
> I would expect a terminal emulator to be a couple of thousand lines
> of code. Maybe less for the simpler ones. Look around and see what
> you can find.
> //Peter
> _______________________________________________
> libssh2-devel

Received on 2010-06-28