Operating System - HP-UX
1837509 Members
3647 Online
110117 Solutions
New Discussion

Re: psedo terminals for screen using openpty.

 
Deepak_3
Occasional Contributor

psedo terminals for screen using openpty.

Hi,

I am trying to implement screen command on a UNIX which uses openpty system call to open a slave device.

This is not there in pty.c of screen.
We added this code, seems to return the slave properly terminal properly.

We have problems implemeting screen on that machine.
We do not get the shell prompt and no interaction, probably some line discipline is missing on this.
All the Control commands of screen works fine on this,
like e.g.
Ctrl-A Ctrl-will give a message
Really quit and kill all your windows [y/n]
And will exit properly.

when we say screen ls , then it would give bad select fd error.

Do you have idea on this.
Does any one have a small code to execute a command in pseudo terminal on HPUX, then it would be great, we will try the same on that machine or basic concept.

I do not know anyone who has worked on pseudo terminals.

A help on this will highly appreciated .

Thanks for your time.
Regards
Deepak
2 REPLIES 2
Andreas Voss
Honored Contributor

Re: psedo terminals for screen using openpty.

Hi,

i put you some sample source code at attachment that deals with pty.
Hope this helps.

Regards
Deepak_3
Occasional Contributor

Re: psedo terminals for screen using openpty.

Thanks very much for the info

Highly Appreciated.

Regards
Deepak