through script I wrote a code :
below I am unable to exit from putty gives 90 timeout error, cursor blink till "sometext>" I expect exit should type here from below bottom lines
TE_type("g.ack<kReturn>");
TE_wait_text("sometext>", 90,1,yStartPos+1,80,600,&xStartPos,&yStartPos);
TE_wait_sync();
lr_output_message("=================%d",yStartPos);
TE_get_text_line(1,yStartPos-1,-1,text);
//lr_output_message("=========##===%s",text);
while(row<yStartPos) //row=1
{
TE_get_text_line(1,row,-1,text);
lr_output_message("##########%s",text);
row++;
}
TE_type("exit<kReturn>"); //exit is not typing after exiting loop
TE_type("exit<kReturn>");