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.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, NICE_REPLY_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 29458 invoked from network); 5 Jan 2022 18:23:26 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 5 Jan 2022 18:23:26 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 949929C6F3; Thu, 6 Jan 2022 04:23:22 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 270A19C6E5; Thu, 6 Jan 2022 04:23:01 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="NrUVCS/j"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 24BCF9C6E5; Thu, 6 Jan 2022 04:22:59 +1000 (AEST) Received: from mail-oi1-f176.google.com (mail-oi1-f176.google.com [209.85.167.176]) by minnie.tuhs.org (Postfix) with ESMTPS id 00A0E94A6B for ; Thu, 6 Jan 2022 04:22:57 +1000 (AEST) Received: by mail-oi1-f176.google.com with SMTP id w7so266090oiw.0 for ; Wed, 05 Jan 2022 10:22:57 -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:to :cc:references:from:in-reply-to; bh=9OEj49KQuTstOYKgOM+HaaRqA0IyTl/GIYdjTdddxeM=; b=NrUVCS/j5p9PF6UDaYT9Yf6fh9iYteFZKS+8JX9gqJ6ZZmq9vpiCpgOLx4gqnAzeur sufeE0qisapz1b7u9Hi1PJ0EL914bbHNx36duqS7HBZfLaBrdkO9na1+T9ujKb297qBo 4q0ctuaeksdJf8Jhk6EPOvVSQ2dW3JLfmKbeK9/JOYs5ddJNQMGfiCd82s3l1eitKNM7 Cycyry6fh6xw9g0GE3iTtzvbzpSCWg3Z+cPBxNe1NZ1kkR9HmAkJQ4/IZqy0XSFyu+6F yUcewESHG0eECxOKj7HgsZugspYap9yBcRfGSWg7vdwnqJEAUZXDk5K+IyfebIDDR4fq akug== 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:to:cc:references:from:in-reply-to; bh=9OEj49KQuTstOYKgOM+HaaRqA0IyTl/GIYdjTdddxeM=; b=RTFHdEI6zNewGHNDbHbVrYaDruwV8GCqoa2xD1Lcca6n1fhDs+8271c4rq9LSTRMNz ayfkduFP3Ksn+gnsCQGmFOVkHFFyjwBO1/ZNwqgzpJTT+w2Z/fmMBqaL0k1pFx1u5syP SO2DwhIwlBb6HM33S90HzQ/LrIHkyXz/eDZRkL8T4EhT5W4f0BfxUXd8jVMO1AK5n5tG rR8hLGLIuoSL6KQuYforXWnWW91EtvZRWjCUTxPnPHHd+K8i7VMRob+Gs+jUhTvMDcqE H59/w7AZk4WAQK62ROXlL5UxYvHUaantPnsArqdLquF/gq1kaQeIpAIFgTkJ31hdnkjo fygA== X-Gm-Message-State: AOAM531JiFElVmcPaLjfUyrq7uA3hozA82GwYK/48i0gxjbBcV0gvoH5 5Up4N7Atd0S2M5pRQNiiRPTK62UpeB5PiA== X-Google-Smtp-Source: ABdhPJyJEa/PsCQegCwaxaY2TKtF2eDvZES4iZVDhwCnLUMuicrRHO2SkdD7oS3vOGLRDdMeE3Legw== X-Received: by 2002:a05:6808:1246:: with SMTP id o6mr3539213oiv.73.1641406977191; Wed, 05 Jan 2022 10:22:57 -0800 (PST) Received: from [10.8.1.8] ([89.187.164.95]) by smtp.gmail.com with ESMTPSA id q16sm7477473oof.39.2022.01.05.10.22.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 05 Jan 2022 10:22:56 -0800 (PST) Content-Type: multipart/alternative; boundary="------------zDlk8iZKSyItVPYdMxW0yNpu" Message-ID: Date: Wed, 5 Jan 2022 12:22:55 -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 To: Phil Budne References: <102db625-b2a0-935b-7424-a183ae64fb65@gmail.com> <202201051734.205HYqeq042817@ultimate.com> From: Will Senn In-Reply-To: <202201051734.205HYqeq042817@ultimate.com> Subject: Re: [TUHS] vi on v7 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: , Cc: tuhs@minnie.tuhs.org Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" This is a multi-part message in MIME format. --------------zDlk8iZKSyItVPYdMxW0yNpu Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 1/5/22 11:34 AM, Phil Budne wrote: > Will Senn wrote: >> so then I tryed vt50 and vt52 modes... > xterm should have VT52 emulation, at least the man page on my system says: >> o VT52 emulation is complete. > But looking at CTRL+{LEFT,MIDDLE,RIGHT}_CLICK menus didn't show a toggle. > > The VT100 sequence to enter VT52 mode seems to be [?2l > you should be able to send it with echo. > > Then HJ should clear the screen. > > NOTE! The ANSI command prefix [ will put a real VT52 into "hold > screen" mode where you need to press some (scroll?) button to allow > new lines to be added at the bottom of the screen. Ask me how I know! > > phil Well, is there no end to fascination... That 'worked' in that I was able to do this in n xterm on my mac: printf "\033[?2l" which changed the size of the xterm window to 80 chars wide... then: printf "\033H\033J" which cleared the screen as you said it would. But, then, I telnet'd into the the v7 instance and set TERM=vt52, etc. Now vi gives this: Y7 HJY- ~         ~         ~         ~         ~         ~         ~         ~         ~         ~Y, However, I should note that v7 doesn't seem to process escape sequences, either with a pristine instance or my fully configured instance... echo '\033' \033 $ ed test ?test a J (just echoes the J) . w 3 q $ od -c test 0000000 033   J  \n  \0 0000003 --------------zDlk8iZKSyItVPYdMxW0yNpu Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
On 1/5/22 11:34 AM, Phil Budne wrote:
Will Senn wrote:
so then I tryed vt50 and vt52 modes...
xterm should have VT52 emulation, at least the man page on my system says:
       o   VT52 emulation is complete.
But looking at CTRL+{LEFT,MIDDLE,RIGHT}_CLICK menus didn't show a toggle.

The VT100 sequence to enter VT52 mode seems to be <ESC>[?2l
you should be able to send it with echo.

Then <ESC>H<ESC>J should clear the screen.

NOTE! The ANSI command prefix <ESC>[ will put a real VT52 into "hold
screen" mode where you need to press some (scroll?) button to allow
new lines to be added at the bottom of the screen.  Ask me how I know!

phil
Well, is there no end to fascination... That 'worked' in that I was able to do this in n xterm on my mac:
printf "\033[?2l"

which changed the size of the xterm window to 80 chars wide... then:
printf "\033H\033J"

which cleared the screen as you said it would.

But, then, I telnet'd into the the v7 instance and set TERM=vt52, etc.

Now vi gives this:
Y7 HJY- ~
        ~
        ~
        ~
        ~
        ~
        ~
        ~
        ~
        ~Y,


However, I should note that v7 doesn't seem to process escape sequences, either with a pristine instance or my fully configured instance...
echo '\033'
\033

$ ed test
?test
a
<ESC>J (just echoes the J)
.
w
3
q
$ od -c test
0000000 033   J  \n  \0
0000003

--------------zDlk8iZKSyItVPYdMxW0yNpu--