From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, NICE_REPLY_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 25269 invoked from network); 28 Dec 2021 21:48:31 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 28 Dec 2021 21:48:31 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 67DF19CFF1; Wed, 29 Dec 2021 07:48:27 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id ADDD19CF7B; Wed, 29 Dec 2021 07:48:10 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="MLC0wC1P"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id A689A9CF39; Wed, 29 Dec 2021 07:48:08 +1000 (AEST) Received: from mail-ot1-f46.google.com (mail-ot1-f46.google.com [209.85.210.46]) by minnie.tuhs.org (Postfix) with ESMTPS id 2CAC19CEFC for ; Wed, 29 Dec 2021 07:48:08 +1000 (AEST) Received: by mail-ot1-f46.google.com with SMTP id a26-20020a9d6e9a000000b0058f37eeb861so23405396otr.9 for ; Tue, 28 Dec 2021 13:48:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language :from:to:references:in-reply-to; bh=ryFKrO/j8YZDtG2PsVh8ASohgUgo3udY/7SRGh2zvJw=; b=MLC0wC1P2tCptLQM/Mm8yiGHhQ+1dcqW38RZrB1y4S3K/8VFOKeDMMq6UgEnfefbxj GyNjtBsCCJQlEYW6feuHuCEdV0NCykbUtOGkZCh4Eid2oWuH4ZdFWFNfTrgNgZLcDLEl e+uKHq+ssgDYEWaPJtnnij4DfXsTpVL968nbToiJ4jVrqRp8kp9L6z5flvKaDR++oDCy NqFwWu9bkyXTA3u06UHo8GJ59DD+hs/0zPWS2mRsVR/CBOlB+DS1z2PDALJ6UDwuOLSZ vltwBjJ/9P2K67kh7Z5fgNEBwgSoec2FKS7Yfg/xgB1OuuBJzXSexLN0PcUthfq0RPQg Dciw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:from:to:references:in-reply-to; bh=ryFKrO/j8YZDtG2PsVh8ASohgUgo3udY/7SRGh2zvJw=; b=nh6a4xKYcAm8FPRJ25baxQ25t7z9snRD3FqYX2xenuT0AZW4wXLsbadpKE/zV4dwXX o5kiYonoUcd50xyJQGVg1EANgORku9YO8TdAScenAcFin733ZG5qrDgBl0IeEODZzoYA 1eQklk3wGsBZM+jtWcW3NIe6Alyvpdu5T+L3zTgBfJmfaOQxAOcUzN1nM2lYWpIhj2C/ 4v2Az+HxLwS5tPY8dmGDc9a6ZobuyRaSCoBwhj/s6Fg3jh4HTGQ1pTu2MZG1wPOP1XwH bBxgEqsjYDZQbniRl8yMkBnY76QC6gfT9eJtbnhPvFFGbqEppx6YIvLvjP0CvoWdPqQi wYQw== X-Gm-Message-State: AOAM5316kwWiYV3DHhdISwVlGEXfDO994N7IZ1Wwnq+h7GlkVBcre9Pf dEOlOOsHT7DNn5diM4It6O2G+RXw89immg== X-Google-Smtp-Source: ABdhPJwpdL57D8hA0tDw2uI2KudlUv752lTkUDcYnLog/m7r+iXD3Zqsqimqk0ezsT9SLsnLJITK7Q== X-Received: by 2002:a9d:51d2:: with SMTP id d18mr14912017oth.101.1640728087053; Tue, 28 Dec 2021 13:48:07 -0800 (PST) Received: from [192.168.1.13] (035-134-121-000.res.spectrum.com. [35.134.121.0]) by smtp.gmail.com with ESMTPSA id bi20sm4261074oib.29.2021.12.28.13.48.06 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Dec 2021 13:48:06 -0800 (PST) Content-Type: multipart/alternative; boundary="------------0h30Dbk0fF1tBaAEqi2fIzMd" Message-ID: Date: Tue, 28 Dec 2021 15:48:05 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 Content-Language: en-US From: Will Senn To: TUHS main list References: <84e6263e-f990-cf9d-b988-55d15217771f@gmail.com> In-Reply-To: <84e6263e-f990-cf9d-b988-55d15217771f@gmail.com> Subject: Re: [TUHS] echo in v6/v7/sysvr2 X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" This is a multi-part message in MIME format. --------------0h30Dbk0fF1tBaAEqi2fIzMd Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 --------------0h30Dbk0fF1tBaAEqi2fIzMd Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
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

--------------0h30Dbk0fF1tBaAEqi2fIzMd--