From: Will Senn <will.senn@gmail.com>
To: TUHS main list <tuhs@minnie.tuhs.org>
Subject: Re: [TUHS] echo in v6/v7/sysvr2
Date: Tue, 28 Dec 2021 15:48:05 -0600 [thread overview]
Message-ID: <ba9e68d7-2743-3b14-97ea-b8a3e287aac0@gmail.com> (raw)
In-Reply-To: <84e6263e-f990-cf9d-b988-55d15217771f@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 797 bytes --]
Duh! RTFM - man echo (pdf, cuz I haven't quite figured out how got
system pages yet):
echo '\033[2J\033[H'
works fine. The advantage of the c program is it doesn't put a newline
after the escape sequences...
On 12/28/21 3:15 PM, Will Senn wrote:
> Is it possible to use echo to send a vt-100 escape sequence in
> v6/v7/sysvr2?
>
> 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 :)?.
>
> Thanks,
>
> Will
[-- Attachment #2: Type: text/html, Size: 1517 bytes --]
next prev parent reply other threads:[~2021-12-28 21:48 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 [this message]
2021-12-28 21:49 ` Steffen Nurpmeso
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=ba9e68d7-2743-3b14-97ea-b8a3e287aac0@gmail.com \
--to=will.senn@gmail.com \
--cc=tuhs@minnie.tuhs.org \
/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).