home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!mcsun!sunic!ericom!eos.ericsson.se!etxmesa
- From: etxmesa@eos.ericsson.se (Michael Salmon)
- Subject: Re: Setting variables to ASCII codes in csh scripts
- Message-ID: <1992Jul31.114610.7322@ericsson.se>
- Keywords: CSH ASCII ESCAPE CODES VARIABLES
- Sender: news@ericsson.se
- Nntp-Posting-Host: eos90.ericsson.se
- Reply-To: etxmesa@eos.ericsson.se (Michael Salmon)
- Organization: Ericsson Telecom AB
- References: <1992Jul30.180327.10859@galileo.cc.rochester.edu> <1992Jul31.091545.15162@quando.quantum.de>
- Date: Fri, 31 Jul 1992 11:46:10 GMT
- Lines: 41
-
- In article <1992Jul31.091545.15162@quando.quantum.de>,
- steimann@quando.quantum.de (Ulrich Steimann) writes:
- |> In article <1992Jul30.180327.10859@galileo.cc.rochester.edu> eric@prodigal.psych.rochester.edu (Eric Hansen) writes:
- [...]
- |> >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
-
- I guess that you mean !!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, ...
-
- Also, recently posted to comp.sources.3b1, there is techo that combines
- tput with echo.
-
- --
-
- Michael Salmon
-
- #include <standard.disclaimer>
- #include <witty.saying>
- #include <fancy.pseudo.graphics>
-
- Ericsson Telecom AB
- Stockholm
-