ICE

TCP/IP Products => TCP-PRO => Topic started by: jwf on September 20, 2005, 11:36:35 am

Title: OCX and SetTerminalType
Post by: jwf on September 20, 2005, 11:36:35 am
I have read the dialog with jmabbott.

I call SetTerminalType() in the OnConnectionComplete() and it does not affect the terminal that UNIX thinks it is talking to.

Your emulator must be setting it (or something that will have it set properly upon connect) prior to the connect call.  I would guess the setProfile()/getProfile() pair.

How do I get this to work properly?

Setting the default profile has no effect either.

John
Title: OCX and SetTerminalType
Post by: Bob on September 20, 2005, 05:09:04 pm
Check the code at the end of this link.

http://yabb.jriver.com/ice/index.php?board=2;action=display;threadid=42;start=15
Title: OCX and SetTerminalType
Post by: llou on April 07, 2006, 01:29:12 pm
Do you have VB sample code for get/setprofile?
Title: OCX and SetTerminalType
Post by: Bob on April 07, 2006, 02:49:12 pm
Sorry, no...
Title: Re:OCX and SetTerminalType
Post by: llou on April 07, 2006, 03:54:37 pm
Then where is the default profile for the OCX? Is there a way
to change it manually?

liang
Title: OCX and SetTerminalType
Post by: Bob on April 07, 2006, 04:05:10 pm
It's in the data section of the ocx. No way to change it manually that I know of.
Title: Re:OCX and SetTerminalType
Post by: llou on April 07, 2006, 04:15:44 pm
What I am trying to do is using terminal type Wyse 60(24line)
 to connect remote host with Dejavu.ocx in my VB app.  Can you help?  Thanks.
Title: Re:OCX and SetTerminalType
Post by: Bob on April 07, 2006, 04:31:31 pm
What I am trying to do is using terminal type Wyse 60(24line)
 to connect remote host with Dejavu.ocx in my VB app.  Can you help?  Thanks.
I can't help with VB programming, I assume you will have to convert the C sample of the profile variant to VB somehow.

You could try setting the terminal type on the connection complete event as John did above. I think that will change the terminal type in the emulator however the unix side with have the wrong terminal type set in the environment. You could override that by explicitly setting the terminal type in the .profile. A bit of a hack.
Title: Re:OCX and SetTerminalType
Post by: llou on April 07, 2006, 04:40:43 pm
I did that but it doesn't affect the host.  Once I login in to the
host, it tells me that I connect as Termial ANSI.  How do I set
the terminal type in the .profile?
Title: OCX and SetTerminalType
Post by: Bob on April 07, 2006, 04:46:08 pm
TERM=wyse60
export TERM