home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / shell / 3235 < prev    next >
Encoding:
Text File  |  1992-07-31  |  1.9 KB  |  56 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!mcsun!sunic!ericom!eos.ericsson.se!etxmesa
  3. From: etxmesa@eos.ericsson.se (Michael Salmon)
  4. Subject: Re: Setting variables to ASCII codes in csh scripts
  5. Message-ID: <1992Jul31.114610.7322@ericsson.se>
  6. Keywords: CSH ASCII ESCAPE CODES VARIABLES
  7. Sender: news@ericsson.se
  8. Nntp-Posting-Host: eos90.ericsson.se
  9. Reply-To: etxmesa@eos.ericsson.se (Michael Salmon)
  10. Organization: Ericsson Telecom AB
  11. References: <1992Jul30.180327.10859@galileo.cc.rochester.edu> <1992Jul31.091545.15162@quando.quantum.de>
  12. Date: Fri, 31 Jul 1992 11:46:10 GMT
  13. Lines: 41
  14.  
  15. In article <1992Jul31.091545.15162@quando.quantum.de>,
  16. steimann@quando.quantum.de (Ulrich Steimann) writes:
  17. |> In article <1992Jul30.180327.10859@galileo.cc.rochester.edu> eric@prodigal.psych.rochester.edu (Eric Hansen) writes:
  18. [...]
  19. |> >Does anyone know how to set variables to ASCII sequences of escapes and
  20. |> >what not?!  I could just 'echo' them out if it would be easier, but
  21. |> >it seems difficult to embed escape sequences in a file using vi (to put
  22. |> >the clear sequence in an 'echo' statement, I had to 'clear >> FILE' and
  23. |> >then cut and past!).
  24. |> 
  25. |> Move the cursor to an empty line and type
  26. |>     !clear
  27.  
  28. I guess that you mean !!clear
  29.  
  30. |> The output of clear is then placed in the line. (try "man vi")
  31. |> For Cursor right, switch to input-mode and type CTRL-V followed by
  32. |> your cursor-right-key. The cursor-right-sequence is then palced in the
  33. |> text.
  34. |> 
  35. |> Is everybody on your machine using a vt100-Terminal? Hard-coded
  36. |> Sequences may cause strange effects on other terminals.
  37. |> 
  38. |> >Also, where can I get a listing of all the vt100
  39. |> >control codes and escape sequences?
  40. |> 
  41. |> man terminfo, termcap, untic, tput, ...
  42.  
  43. Also, recently posted to comp.sources.3b1, there is techo that combines
  44. tput with echo. 
  45.  
  46. -- 
  47.  
  48. Michael Salmon
  49.  
  50. #include    <standard.disclaimer>
  51. #include    <witty.saying>
  52. #include    <fancy.pseudo.graphics>
  53.  
  54. Ericsson Telecom AB
  55. Stockholm
  56.