home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / shell / 5286 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  1.5 KB

  1. Path: sparky!uunet!munnari.oz.au!goanna!escargot!otto!dtb
  2. From: dtb@otto (David Bath)
  3. Newsgroups: comp.unix.shell
  4. Subject: Re: Curses like menu in a bourne shell script
  5. Message-ID: <dtb.726379897@otto>
  6. Date: 7 Jan 93 04:11:37 GMT
  7. References: <38155@uflorida.cis.ufl.edu>
  8. Organization: RMIT Computer Centre
  9. Lines: 32
  10. NNTP-Posting-Host: otto.bf.rmit.oz.au
  11.  
  12. pm0@bale.cis.ufl.edu (Patrick Martin) writes:
  13.  
  14. >I wish to create a bourne shell menu which will read the cursor
  15. >keys and scroll a highlighted bar across a list of menu items.
  16. >I wish for return on a menu item to select that menu item.
  17.  
  18. >Sounds alot like curses I know.
  19.  
  20. >I dont want the solution to be entirely bourne shell (ie: I do
  21. >not wish to write a supporting C routine to perform any subtasks).
  22. >I also do not wish to have to write a termcap.
  23.  
  24. >Is this possible or is it too much to ask of bourne shell?
  25.  
  26. >Thanks (I hope) in advance,
  27.  
  28. >Pat
  29.  
  30. Check out the tput(1) command which uses output curses strings to the
  31. terminal.
  32.  
  33. Guess you would have to keep the lines of text and positions in strings.
  34.  
  35. Reading the cursor keys or whatever will require a small C program.
  36.  
  37. David T. Bath    Email:dtb@otto.bf.rmit.oz.au    Phone:03-3477511
  38. Global Technology Corporation, 179 Grattan St, CARLTON, VIC, 3153, AUSTRALIA
  39. "Failure to emulate is the best revenge" - Marcus Aurelius
  40. -- 
  41. David T. Bath    Email:dtb@otto.bf.rmit.oz.au    Phone:03-3477511
  42. Global Technology Corporation, 179 Grattan St, CARLTON, VIC, 3153, AUSTRALIA
  43. "Failure to emulate is the best revenge" - Marcus Aurelius
  44.