ICE

Please login or register.

Login with username, password and session length
Advanced search  

News:

ICETCP.PRO and ICETCP.PLUS are compatible with Windows 11!

Author Topic: OCX and SetTerminalType  (Read 1821 times)

jwf

  • Full Member
  • ***
  • Posts: 11
  • Place Personal Text Here
OCX and SetTerminalType
« 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
Logged

Bob

  • Administrator
  • Ice Artist
  • *****
  • Posts: 1607
OCX and SetTerminalType
« Reply #1 on: September 20, 2005, 05:09:04 pm »

Logged

llou

  • Newbie
  • *
  • Posts: 4
  • Place Personal Text Here
OCX and SetTerminalType
« Reply #2 on: April 07, 2006, 01:29:12 pm »

Do you have VB sample code for get/setprofile?
Logged

Bob

  • Administrator
  • Ice Artist
  • *****
  • Posts: 1607
OCX and SetTerminalType
« Reply #3 on: April 07, 2006, 02:49:12 pm »

Sorry, no...
Logged

llou

  • Newbie
  • *
  • Posts: 4
  • Place Personal Text Here
Re:OCX and SetTerminalType
« Reply #4 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
Logged

Bob

  • Administrator
  • Ice Artist
  • *****
  • Posts: 1607
OCX and SetTerminalType
« Reply #5 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.
Logged

llou

  • Newbie
  • *
  • Posts: 4
  • Place Personal Text Here
Re:OCX and SetTerminalType
« Reply #6 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.
Logged

Bob

  • Administrator
  • Ice Artist
  • *****
  • Posts: 1607
Re:OCX and SetTerminalType
« Reply #7 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.
Logged

llou

  • Newbie
  • *
  • Posts: 4
  • Place Personal Text Here
Re:OCX and SetTerminalType
« Reply #8 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?
Logged

Bob

  • Administrator
  • Ice Artist
  • *****
  • Posts: 1607
OCX and SetTerminalType
« Reply #9 on: April 07, 2006, 04:46:08 pm »

TERM=wyse60
export TERM
Logged
 

Page created in 0.017 seconds with 21 queries.