Pseudo Terminals


 
Thread Tools Search this Thread
Top Forums Programming Pseudo Terminals
# 1  
Old 12-26-2002
Pseudo Terminals

I need to spawn a number of foreground process by reading a configuration file. Each process needs some form of I/O. Hence I need to run it on different terminals.
How it can be done programatically , i.e. , my module needs to find which terminal is not in use, then open it, execute the process and set the terminal as its controlling terminal.

I am working on SunOS el 5.8
# 2  
Old 12-26-2002
You will want to use STREAMS based pty's with any new code. Here is an example of how to do that. (Scroll down until you see ptmx which will be highlighted.)

Another option is to use the old BSD pty's which are documented on pty(8). The trick there is to open, in sequence, each master device until one finally succeeds. When one of the opens finally work, you have allocated that pty. As the number of pty's grows, this takes longer and longer.
# 3  
Old 01-07-2003
I wonder how virtual terminals work asynchronously. When the system boots (SCO 3.2v5.0.5) we are prompted by at least twelve terminals (provided they are all enabled). We can work on any of them by pressing the key combination in series ALT + FUNC KEY NO for the respective tty terminals. Now which driver is actually capturing these keys and how it is restoring the previous stored screen and interfaces with the user? How can we implement this type of same concept?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

non-overlapping terminals

Hi Everyone! I was wondering if there's an easy way to have terminals (gnome-terminal for instance) be open in such a way that they're not overlapping each other? I suppose I could play around with the --geometry option but that would imply me checking whether a terminal is already at a given... (3 Replies)
Discussion started by: anthalamus
3 Replies

2. UNIX for Dummies Questions & Answers

.bash_logout in Pseudo terminals

Hi all! I wrote a script that backups the bash history and it is called by .bash_logout. It work fine in /dev/ttyX terminals but the problem is it doesn't work when I logout from the pseudo-terminals i.e. /dev/pts/X (those created by gnome-terminal, konsole, etc). Does anybody have idea why it... (0 Replies)
Discussion started by: funyotros
0 Replies

3. UNIX for Dummies Questions & Answers

Communicating Via Terminals With Other Computers

Hello, I would like to know if it is possible to communicate between two terminals on seperate computers for free - e.g. not using proprietary software or using the built in UNIX terminals on operating systems of the UNIX flavor. Thanks, photray94 (2 Replies)
Discussion started by: photray94
2 Replies

4. Shell Programming and Scripting

calling multiple terminals

I'd like to write a script that will call n number of terminals that will all ssh to X-server and automatically enter the same password. Unfortunately I'm not exactly sure what kind of commands would work for me here because when I call for gnome-terminal, a new terminal pops up and the old... (1 Reply)
Discussion started by: gelitini
1 Replies

5. Solaris

pseudo: [ID 129642 kern.info] pseudo-device: vol0

Hi I have a system that gave me some messages on bootup that I was not used to seeing: pseudo: pseudo-device: vol0 genunix: vol0 is /pseudo/vol@0 these came with these: Feb 13 17:42:17 system1 eri: SUNW,eri0 : 100 Mbps full duplex link up Feb 13 17:42:21 system1sendmail: My unqualified... (0 Replies)
Discussion started by: mndavies
0 Replies

6. UNIX for Advanced & Expert Users

one command for all unix terminals

Hi, I am working in huge environment, I do type commands from my terminal window repeadly in all same setup unix environments. I am looking some kind of a terminal emulator or some simple program that will help me? basically if type command like 'ls' in one unix terminal window it should echo... (5 Replies)
Discussion started by: rgmekala
5 Replies

7. AIX

how to create virtual terminals

Hello All! I want to know how to create virtual terminals in aix. As in Linux, simply by using Ctl-Alt-F1-F6 keys, i can switch to any of the 6 corresponding virtual terminals. But i dont know how to do that in AIX. Also if I access an AIX server through remote desktop, will the method to create... (0 Replies)
Discussion started by: Anubhuti
0 Replies

8. UNIX for Dummies Questions & Answers

view all others terminals

i'm responsible for maintenance at my place and would like to watch all terminals in front me.i log myself into one terminal, but would like to view copy of other's terminals visible to me, it is just like for audit/security watch. (2 Replies)
Discussion started by: vkandati
2 Replies

9. UNIX for Advanced & Expert Users

Multiple Terminals

Dear Members, I have aquired a load of old Wyse dumb terminals. I have a Linux system set up that I want to be the host for all of these. Now, I know these don't use cat5 or standard networking. They are all done through serial (com) ports. However, I researched this more and found a converter... (25 Replies)
Discussion started by: Phobos
25 Replies

10. UNIX for Dummies Questions & Answers

Making X terminals out of a PC

Well I was trying to configure an Old PC having Win 3.1 to speak X with my UNIX server . I looked at notes , Looks like Debian Linux gives a base tarball to help boot of a floppy and talk to the XDMCP server . Well I was just hoping if there are other open source tools out there which would... (1 Reply)
Discussion started by: DPAI
1 Replies
Login or Register to Ask a Question