[comp.unix.wizards] SXT

mwh_adev@jhunix.UUCP (04/01/87)

[Oh, No!  It's the line eater of Death, Doom, and Mild Discomfort!]

I am working on an application involving SXT.  It isn't working too well.
I followed the directions in the man page, and after much labor I have
apparently succeeded in initiating the multiplexing.  However, when I
try to do an SXTIOCSWTCH, I get about 2/3 of a line of junk on my screen and
standard input becomes absolutely useless.  Can anyone help me?  Has anyone
else out there been so foolish as to attempt anything with SXT?  I would also
appreciate news of any other idiosyncracies associated with SXT.


					Thanks in advance,
							Jon Kay


UUCP: seismo!mimsy!jhunix!mwh_adev
ARPA: kay@hopkins
BITNET: ins_ajsk@jhuvms

keith@sdscal.UUCP (Keith Jones) (09/13/89)

There was a program on the University of Calgary system some time ago that
allowed you to edit your shell command lines using Emacs-like commands.  It
was written on a BSD machine and used PTYs.  Since this machine is a System
V machine, we don't have PTYs.  But we do have SXTs.  Reading the manual
entry makes me believe that this is the way to go.

I've been attempting to write something that looks a little like shl(1)
except that it allows you to edit your command line, but I've never been
able to get it working.  The point of this posting is to find out whether
anyone out there has successfully written a program that does this.

BTW, I have written something using pipe(2) that does a reasonably good job
of the above, but it seems more like a hack than a serious program.


----------------------------------------------------------------
Keith Jones			I don't have a signature because
Stream Data Systems		my pen keeps scratching up my
Calgary, Alberta, Canada	monitor.

wcs) (09/26/89)

In article <194@sdscal.UUCP> keith@sdscal.UUCP (Keith Jones) writes:
]There was a program on the University of Calgary system some time ago that
]allowed you to edit your shell command lines using Emacs-like commands.  It
]was written on a BSD machine and used PTYs.  Since this machine is a System
]V machine, we don't have PTYs.  But we do have SXTs.  Reading the manual
]entry makes me believe that this is the way to go.

Why do you need to use either one?  The Korn Shell (ksh) does
command-line editing using either emacs-style or vi-style, and
doesn't need pty, just raw-or-cbreak-mode.  What ptys are useful for
is doing job control; ksh was once hacked to do job control over sxts,
but I don't think that's currently supported.
-- 
# Bill Stewart, AT&T Bell Labs 4M312 Holmdel NJ 201-949-0705 ho95c.att.com!wcs
# also found at 201-271-4712 tarpon.att.com!wcs Somerset 4C423 Corp. Park 3

# More Colombians die from American tobacco than Americans from Colombian coke.