Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!ginosko!uunet!ficc!peter From: peter@ficc.uu.net (Peter da Silva) Newsgroups: comp.os.minix Subject: Re: job control Message-ID: <6495@ficc.uu.net> Date: 10 Oct 89 17:39:45 GMT References: <3492@ast.cs.vu.nl> <3498@solo10.cs.vu.nl> <3539@ast.cs.vu.nl> <3554@solo2.cs.vu.nl> <3592@ast.cs.vu.nl> <3630@solo5.cs.vu.nl> <3631@ast.cs.vu.nl> <14987@bloom-beacon.MIT.EDU> Reply-To: peter@ficc.uu.net (Peter da Silva) Organization: Xenix Support, FICC Lines: 58 I'm using System V/386 right now, with virtual terminals. [how do you] > (1) find out how many virtual terminals are "active" (and also > find out what each of those terminals is running) % ps -ef | grep ' vt.. ' root 27520 1 2 18:19:01 vt01 0:03 -csh root 162 1 0 Sep 28 vt02 0:03 -csh peter 27515 1 0 18:18:58 vt03 0:02 -csh peter 27510 1 0 18:18:52 vt04 0:02 -csh root 29000 27520 12 13:30:25 vt01 0:00 /bin/ps -ef root 29001 27520 2 13:30:25 vt01 0:00 /bin/grep vt peter 28409 27515 0 10:30:54 vt03 0:08 /usr/bin/vt xds13 peter 28410 28403 0 10:30:55 vt04 0:51 kermit -l /dev/tty00 -b 9600 peter 28411 28409 0 10:31:00 vt03 4:05 /usr/bin/vt xds13 peter 28402 27510 0 10:30:49 vt04 0:00 /bin/sh /usr/local/bin/tty00 peter 28403 28402 0 10:30:50 vt04 0:04 kermit -l /dev/tty00 -b 9600 root 28744 162 0 11:52:08 vt02 0:02 /usr/bin/rlogin sigma root 28745 28744 0 11:52:10 vt02 0:33 /usr/bin/rlogin sigma % alias vps "!!" % who | grep ' vt.. ' peter vt04 Oct 10 10:30 saver peter vt03 Oct 10 10:30 saver rootc vt01 Oct 10 11:41 saver rootc vt02 Oct 10 11:48 saver % alias vwho "!!" > (2) switch to an arbitrary one of those virtual terminals with one > simple command/keystroke SysReq-F goes to vt0. > can such an interface be added on top of the multiple virtual > terminals idea with out introducing the same kind of complexity > introduced by job control? Obviously. > is anybody out there actively working on this issue? Looks like it. One caveat, if you're working on a remote terminal you want to be able to specify some sort of multiplexing, so you don't have to repaint the whole screen when you shift to a new process. You could have vt01, vt02, and vt03 sharing the same virtual screen. Then vt04 and vt05 would have a new screen. You could select 1, 2, or 3 without a repaint, and output from the ones not currently active would be held until they were selected. Or not. Sounds like a job for Emacs to me. (1/2 :->) -- Peter da Silva, *NIX support guy @ Ferranti International Controls Corporation. Biz: peter@ficc.uu.net, +1 713 274 5180. Fun: peter@sugar.hackercorp.com. `-_-' 'U` Quote: Structured Programming is a discipline -- not a straitjacket.