how to setup ptty - what am I doing wrong

how to setup ptty - what am I doing wrong

Post by Michael Veksl » Thu, 28 Jul 1994 01:53:19



I want to write a small utility that runs programs with poor user
interface (like sh,csh,bc,etc.).
This utility will communicate those programs by a pseudo tty (pty).
I was able to open a pty for the sub-process (I use tcsh for this test)
and the control part for the parent. Everything seems to work fine
except:
  1. I could not implement non blocking terminal IO
     (real terminal read AND the pty read), together with non busy
     waiting, to avoid 100% cpu I used sleep!!! Is there a better way?
     (there must be)
  2. My tcsh process was shouting something about no access to terminal
     ("not a tty" or something), but all keys operated correctly
     (arrows).
     When I run emacs (not the X version), it was using only 25 rows
     instead of 43.
     I guess that I have to do some setting up to my pty control side
     but I could not find anything about that in my ioctl man pages.

PS  I am using Linux-1.1.13  -  my manual pages are much older than the
    kernel (about 1-2 years older), so I can't rely on them.

Please respond by mail, I never read this news-group.

Michael

 
 
 

1. CD-R/RW setup-what am I doing wrong?

I have both a DVD-ROM and a CD-R/RW in my system and I'm having no luck
setting them up under SuSE Linux 7.0 (kernel 2.4.0). Both are ATAPI and are
recognized during boot up. With standard ATAPI kernel support I can get
both to be recognized as mountable and can read CDROMs from them but I
cannot get X-CDRoast to recognize my writer. Per SuSE instructions I added
hdc(my writer)=ide-scsi to LILO and <alias scsi_hostadapter ide-scsi> to
/etc/modules.conf. The writer is now recognized by X-CDRoast as the writer
but also as the reader (I want to use my DVD as the reader rather than
using a hard drive buffer). Further, my CD-R/RW is no longer mountable- I
get a "wrong major or minor number" error. cdrecord identifies the writer
as
scsibus0: 0,0,0    0) 'RICOH   ' 'CD-R/RW MP7040A ' '1.40' RemovableCD-ROM
but  where do I go from there? Do I have to set major/minor numbers and if
so how? I initially set up both drives with SCSI emulation and then NEITHER
of them was mountable. What am I doing wrong?

                                                Thanks,
                                                Alan Claunch

2. Install KDE 3.0 off the Redhat 7.3 discs

3. Dual Homed Linux - what am I doing wrong?

4. Help with gdb...

5. Am I doing something wrong?? - (SAMBA)

6. UNIX Script Commands

7. One more question - What am I doing wrong?

8. Solaris 2.5 / CDE / x86 - Display Problems

9. KNode (No Caching) - What am I doing no wrong

10. gethostbyname misbehavior - what am i doing wrong.

11. What am I doing wrong?????

12. Ip-Masquerade and games over the net...what am I doing wrong????????

13. What I am doing wrong?