home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!goanna!escargot!otto!dtb
- From: dtb@otto (David Bath)
- Newsgroups: comp.unix.shell
- Subject: Re: Curses like menu in a bourne shell script
- Message-ID: <dtb.726379897@otto>
- Date: 7 Jan 93 04:11:37 GMT
- References: <38155@uflorida.cis.ufl.edu>
- Organization: RMIT Computer Centre
- Lines: 32
- NNTP-Posting-Host: otto.bf.rmit.oz.au
-
- pm0@bale.cis.ufl.edu (Patrick Martin) writes:
-
- >I wish to create a bourne shell menu which will read the cursor
- >keys and scroll a highlighted bar across a list of menu items.
- >I wish for return on a menu item to select that menu item.
-
- >Sounds alot like curses I know.
-
- >I dont want the solution to be entirely bourne shell (ie: I do
- >not wish to write a supporting C routine to perform any subtasks).
- >I also do not wish to have to write a termcap.
-
- >Is this possible or is it too much to ask of bourne shell?
-
- >Thanks (I hope) in advance,
-
- >Pat
-
- Check out the tput(1) command which uses output curses strings to the
- terminal.
-
- Guess you would have to keep the lines of text and positions in strings.
-
- Reading the cursor keys or whatever will require a small C program.
-
- David T. Bath Email:dtb@otto.bf.rmit.oz.au Phone:03-3477511
- Global Technology Corporation, 179 Grattan St, CARLTON, VIC, 3153, AUSTRALIA
- "Failure to emulate is the best revenge" - Marcus Aurelius
- --
- David T. Bath Email:dtb@otto.bf.rmit.oz.au Phone:03-3477511
- Global Technology Corporation, 179 Grattan St, CARLTON, VIC, 3153, AUSTRALIA
- "Failure to emulate is the best revenge" - Marcus Aurelius
-