home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / alt / hackers / 1987 < prev    next >
Encoding:
Internet Message Format  |  1993-01-26  |  1.5 KB

  1. Path: sparky!uunet!cs.utexas.edu!not-for-mail
  2. From: gilly!dave@quack.UB.com (Dave Fischer)
  3. Newsgroups: alt.hackers
  4. Subject: Trivial but cool.
  5. Date: 26 Jan 1993 02:19:55 -0600
  6. Organization: Spiders From Mars net
  7. Lines: 29
  8. Sender: daemon@cs.utexas.edu
  9. Approved: JHVH-1
  10. Message-ID: <9301251606.AA5727.V3.4@gilly.UUCP>
  11. NNTP-Posting-Host: cs.utexas.edu
  12.  
  13. This morning's 10-second-but-really-funny hack:
  14.  
  15. I'm on a vt52 with four "user defined" LEDs above the keyboard,
  16. labeled: L1 L2 L3 L4. I made a wild guess that <ESC>[1-4] would
  17. set them, and a little searching turned up the code <ESC>0 to
  18. turn them all off. ("Manuals"? Yeah, right.) Cool - now... what
  19. would I use them for?
  20.  
  21. The shell I'm using (homebrew) has a special character for
  22. number-of-background-jobs in the prompt string. So I replaced
  23. my standard:
  24.  
  25. "%t <user>[<euid>] %j%% "
  26.  
  27. (%t == hh:mm, %j == number-of-jobs, %% == '%')
  28.  
  29. with:
  30.  
  31. "%t <user>[<euid> <ESC>0<ESC>%j%% "
  32.  
  33. So now a single bg process lights up L1, etc., etc...
  34.  
  35. Heh heh heh. And you thought vt52s where useless!!!
  36.  
  37. ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  38.  
  39. ------------------------ uunet!quack!gilly!dave ------------------------
  40. ================= Dave Fischer - Nature's Perfect Food =================
  41. ---------------------- dave%gilly@quack.sac.ca.us ----------------------
  42.