EldoS | Feel safer!

Software components for data protection, secure storage and transfer

ElSimpleSSHClient SetTerminalInfo

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
#2170
Posted: 02/02/2007 19:34:19
by Mike Scriven (Standard support level)
Joined: 05/19/2006
Posts: 102

Should I use this function BEFORE I open the connection or after?

Thanks.
#2171
Posted: 02/03/2007 01:48:23
by Eugene Mayevski (EldoS Corp.)

Before.


Sincerely yours
Eugene Mayevski
#2173
Posted: 02/03/2007 11:17:46
by Mike Scriven (Standard support level)
Joined: 05/19/2006
Posts: 102

That's what I thought and that's what I'm doing. Unfortunately it doesn't appear to be working. I'm trying to get a screen size of 50x80 but when I connect I only get 24x80 (using "vi" editor). If I connect to the same host using Putty it works (I get 50x80). Here is my code - can you see anything wrong with it?

// Set terminal info
CElTerminalInfoX ElTerminalInfoX;
ElTerminalInfoX.SetDefaultOpcodes();
ElTerminalInfoX.SetTerminalType(_T("vt220"));
ElTerminalInfoX.SetCols(80);
ElTerminalInfoX.SetRows(50);
m_pSSHActiveX->SetTerminalInfo(ElTerminalInfoX);

try
{
// opening connection (this is synchronous!)
m_pSSHActiveX->Open();
}
catch(COleDispatchException* e)
{
...
e->Delete();
}

Thanks.
#2175
Posted: 02/03/2007 11:57:39
by Eugene Mayevski (EldoS Corp.)

Moved to HelpDesk for testing.


Sincerely yours
Eugene Mayevski

Reply

Statistics

Topic viewed 1933 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!