tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: VT100 terminal emulator
@ 1999-02-11 18:41 Lars Bro
  0 siblings, 0 replies; only message in thread
From: Lars Bro @ 1999-02-11 18:41 UTC (permalink / raw)
  To: tru64-unix-managers

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2716 bytes --]

Hi, all.

Thanks for all the answers. The illustration below shows the whole idea
of the problem.

  +-------+       +-----------+
  | xterm |       |    tip    |      
  +-------+       +-----------+
      |              |    |
      |              |    |
      | pty     pty  |    | tty
. . . . . . . . . . . . . . . . . . .
      |              |    |
      |              |    |
      +--------------+    |
                          external equipment

The xterm process starts another process which sole purpose is to copy
everything from its output to its input and vice versa. This other
process could as well be tip as suggested by many of the answers.
I wrote a C program that did the job, copying stdin to stdout and
forking a process that copies stdout to stdin.

What I really hoped was that xterm had a �hidden capability� or there
were some other program that could do the trick directly:

            +-------------------+
            | terminal emulator |
            +-------------------+
                      |
                      |
                      | tty
. . . . . . . . . . . . . . . . . . . . .
                      |
                      |
                      | 
                      external equipment

This does not seem to be possible, so the tip solution is the simplest,
I guess. The following advice is from
Michael.Fong@DWNPLAZA.NCOM.nt.gov.au

edit /etc/remote and put in this entry

hardwire:\
        :dv=/dev/tty0a:br�9600:el=^C^S^Q^U^D:ie=%$:oe=^D:

Then type "tip hardwire"

I also got an inhouse answer that a former employee made the following
script to be put in place of tip (this seems old, there may be something
with stty and redirections, I think).

#!/bin/sh5
trap "kill  \`ps -aux | grep 'cat -u /dev/'$1 | grep -v grep | awk
'{print \$2}'\` ; stty sane; exit" 2
echo "ttyterm: terminate with <cntr>c"
sleep 10 >/dev/$1 &
stty -echo raw >/dev/$1
cat -u /dev/$1 &
stty -echo cbreak
cat -u | tr '\012' '\015' >/dev/$1

I got some suggestions about downloading kermit which I did (from
http://www.columbia.edu/kermit/). It did however seem to be quite a
large program (The doc were 100 pages) so I did choose the simpler
solution abov.


Thanks to Thomas Leitner, Jim Belonis, Anthony Talltree, Peter Reynolds,
wmills@WellsFargo.com, Dr, Tom Blinn and Michael Fong



-- 

                               |||
                               \|/  ;_;
What does a process need        |   /"\
to become a daemon ?            |   \v/
                                |    | 
- a fork                        o---/!\---
                                |   |_|
                                |  _/ \_

Lars Bro (lbr@dksin.dk)     Adtranz Signal    +45 36 39 01 88

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-02-11 18:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-02-11 18:41 SUMMARY: VT100 terminal emulator Lars Bro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox