home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!Germany.EU.net!unido!quando!steimann
- From: steimann@quando.quantum.de (Ulrich Steimann)
- Newsgroups: comp.unix.shell
- Subject: Re: Setting variables to ASCII codes in csh scripts
- Keywords: CSH ASCII ESCAPE CODES VARIABLES
- Message-ID: <1992Jul31.091545.15162@quando.quantum.de>
- Date: 31 Jul 92 09:15:45 GMT
- References: <1992Jul30.180327.10859@galileo.cc.rochester.edu>
- Organization: Quantum Software GmbH, Dortmund, Germany
- Lines: 48
-
- In article <1992Jul30.180327.10859@galileo.cc.rochester.edu> eric@prodigal.psych.rochester.edu (Eric Hansen) writes:
- >
- >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
- First, you have to do
- echo "$CODE$VAR"
- because the shell strips multiple blanks and gets confused with
- special characters.
-
- >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!).
-
- Move the cursor to an empty line and type
- !clear
- The output of clear is then placed in the line. (try "man vi")
- For Cursor right, switch to input-mode and type CTRL-V followed by
- your cursor-right-key. The cursor-right-sequence is then palced in the
- text.
-
- Is everybody on your machine using a vt100-Terminal? Hard-coded
- Sequences may cause strange effects on other terminals.
-
- >Also, where can I get a listing of all the vt100
- >control codes and escape sequences?
-
- man terminfo, termcap, untic, tput, ...
-
- >
- >Thanks greatly!
- >
- >- Eric
-
- Greetings,
- UST
- --
- Ulrich Steimann, Quantum GmbH, D-4600 Dortmund | Warum heiraten ?
- email: steimann@quantum.de |
- FAX: 0231-75441-115 | Leasing ist doch
- -----------------------------------------------| so einfach !
-