Yeah the exact same thing happens. I did find somewhere on the internet though that the reason for the delay is that OpenVMS is querying for the terminal type, but because it doesnt get a response it times out. If I send:
writer.WriteLine((char)27 + "[?1;1c");
Then it basically exits out of one of the checks but I still get 2 showing. Though it doesnt reduce the time to connect to around 16 seconds from 35. With that line of code I get the following results: Last interactive login on Tuesday, 2-DEC-2014 08:36:13.95
Last non-interactive login on Monday, 1-DEC-2014 09:18:02.75
System Detective is monitoring activity on this system.
←[c←7←[255;255H←[6n←8
%SET-W-NOTSET, error modifying FTA2093:
-SET-I-UNKTERM, unknown terminal type
testdir is COUNTERDEV
Initialising TEST Environment to COUNTERDEV
←[←(0qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
qqq
qq←(B
←[←#3 Using Test Search rules COUNTERDEV ←[0m
←[←#4 Using Test Search rules COUNTERDEV ←[0m
←[←(0qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
qqq
qq←(B
←[c
Automation Test>
So it seems the first time im sending the escape line its not working but I have this in a loop: if(output[i].Contains((char)27 + "[c"))
{
writer.WriteLine((char)27 + "[?1;1c");
}
This seems to get rid of any further of the errors.