home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.vxworks
- Path: sparky!uunet!news!wrs.com!geoff
- From: geoff@wrs.com (Geoff Espin)
- Subject: Re: shell input line editor
- Message-ID: <geoff.725154780@wrs.com>
- Sender: news@wrs.com (News Manager)
- Nntp-Posting-Host: noyo
- Organization: Wind River Systems, Inc.
- References: <9212232215.AA11226@beorn>
- Date: Wed, 23 Dec 1992 23:53:00 GMT
- Lines: 30
-
- bgeer@beorn.sim.es.com (bob geer) writes:
- >I don't much like the vi-like "led" line editor that comes with VxWorks
- >...
- >shell by creating a /pty/ pseudo-terminal device & redirecting shell's
- >input by changing it's STD_IN fd. Not having a lot of luck, tho.
-
- There isn't a nice way to do this. :-(
-
- >1) Is the pseudo-terminal method a reasonable way to do this?
- This recipe may work (sorry I haven't tried it recently to verify):
- In usrConfig.c change the ioGlobalStdSet() calls to set the STD_/IN/OUT/ERR
- fd's to your cooked i/o device. Then, before shellInit():
- {
- extern int ledId;
- ledId = -1; /* this will tell shellLib not to make ledXXX() calls */
- }
-
- >2) Describe a better way to do this.
- Alternatively, replace ledLib.o in the VxWorks library archive
- with your own ledLib.o. It must provide led{Open,Close,Read,Control}().
- Hopefully, parameters and expected results are reasonably self-explanatory.
-
- BTW, the rlogin/telnet facilities do not takeover the shell's fd's the way
- you expect [see shellOrigStdSet() -- for advanced contortionists].
-
- Geoff
- --
- Geoff Espin geoff@wrs.com (510)748-4100
- Wind River Systems
- 1010 Atlantic Avenue Alameda CA 94501
-