The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: Steffen Nurpmeso <steffen@sdaoden.eu>
To: Will Senn <will.senn@gmail.com>
Cc: TUHS main list <tuhs@minnie.tuhs.org>
Subject: Re: [TUHS] echo in v6/v7/sysvr2
Date: Tue, 28 Dec 2021 22:49:19 +0100	[thread overview]
Message-ID: <20211228214919.5eom3%steffen@sdaoden.eu> (raw)
In-Reply-To: <84e6263e-f990-cf9d-b988-55d15217771f@gmail.com>

Will Senn wrote in
 <84e6263e-f990-cf9d-b988-55d15217771f@gmail.com>:
 |Is it possible to use echo to send a vt-100 escape sequence in v6/v7/sys\
 |vr2?
 |
 |I can write a c program to clear the screen and go home in sysvr2:
 |
 |#define ASCII_ESC 27
 |main()
 |{
 |     printf( "%c[2J", ASCII_ESC );
 |     printf( "%c[H", ASCII_ESC );
 |}
 |
 |and it works fine. I can type the escape sequences in as well, but I'd 
 |just as soon write a shell script with an echo '[[2J;[[H' or something 
 |similar without having to compile a clear command. Is it possible and 
 |what do I need to know :)?.

cat is considered harmful.
Is it???

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)

      parent reply	other threads:[~2021-12-28 21:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-28 21:15 Will Senn
2021-12-28 21:48 ` Will Senn
2021-12-28 21:49 ` Steffen Nurpmeso [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211228214919.5eom3%steffen@sdaoden.eu \
    --to=steffen@sdaoden.eu \
    --cc=tuhs@minnie.tuhs.org \
    --cc=will.senn@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).