home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!not-for-mail
- From: gilly!dave@quack.UB.com (Dave Fischer)
- Newsgroups: alt.hackers
- Subject: Trivial but cool.
- Date: 26 Jan 1993 02:19:55 -0600
- Organization: Spiders From Mars net
- Lines: 29
- Sender: daemon@cs.utexas.edu
- Approved: JHVH-1
- Message-ID: <9301251606.AA5727.V3.4@gilly.UUCP>
- NNTP-Posting-Host: cs.utexas.edu
-
- This morning's 10-second-but-really-funny hack:
-
- I'm on a vt52 with four "user defined" LEDs above the keyboard,
- labeled: L1 L2 L3 L4. I made a wild guess that <ESC>[1-4] would
- set them, and a little searching turned up the code <ESC>0 to
- turn them all off. ("Manuals"? Yeah, right.) Cool - now... what
- would I use them for?
-
- The shell I'm using (homebrew) has a special character for
- number-of-background-jobs in the prompt string. So I replaced
- my standard:
-
- "%t <user>[<euid>] %j%% "
-
- (%t == hh:mm, %j == number-of-jobs, %% == '%')
-
- with:
-
- "%t <user>[<euid> <ESC>0<ESC>%j%% "
-
- So now a single bg process lights up L1, etc., etc...
-
- Heh heh heh. And you thought vt52s where useless!!!
-
- ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
-
- ------------------------ uunet!quack!gilly!dave ------------------------
- ================= Dave Fischer - Nature's Perfect Food =================
- ---------------------- dave%gilly@quack.sac.ca.us ----------------------
-