home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!wupost!darwin.sura.net!udel!rochester!galileo.cc.rochester.edu!prodigal.psych.rochester.edu!eric
- From: eric@prodigal.psych.rochester.edu (Eric Hansen)
- Subject: Setting variables to ASCII codes in csh scripts
- Message-ID: <1992Jul30.180327.10859@galileo.cc.rochester.edu>
- Summary: I need to set variables to ascii escape sequences.
- Keywords: CSH ASCII ESCAPE CODES VARIABLES
- Sender: news@galileo.cc.rochester.edu
- Nntp-Posting-Host: prodigal.psych.rochester.edu
- Organization: University of Rochester - Rochester, New York
- Date: Thu, 30 Jul 92 18:03:27 GMT
- Lines: 25
-
-
- I'd like to 'echo' a table of variables to standard output, and since
- <tab> doesn't always move to the same location on the screen (not in Unix,
- anyways), I'd like to do a carriage return (no linefeed), and then move
- the cursor right to a specific column. Sort of like this:
-
- echo -n $CODE1$VAR1
- echo -n $CODE2$VAR2
- echo $CODE3$VAR3
-
- CODE1 would move over, say, five spaces, CODE2, to the 20th column, and
- CODE3 to the 50th column. Thay way, I don't need to worry about <tab>
- putting things in different columns based on the length of the VARiables.
-
- Does anyone know how to set variables to ASCII sequences of escapes and
- what not?! I could just 'echo' them out if it would be easier, but
- it seems difficult to embed escape sequences in a file using vi (to put
- the clear sequence in an 'echo' statement, I had to 'clear >> FILE' and
- then cut and past!). Also, where can I get a listing of all the vt100
- control codes and escape sequences?
-
- Thanks greatly!
-
- - Eric
-
-