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=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 9181 invoked from network); 26 Feb 2022 20:41:46 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 26 Feb 2022 20:41:46 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 289559CFBB; Sun, 27 Feb 2022 06:41:43 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 16D47944BA; Sun, 27 Feb 2022 06:40:03 +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="WZa+KyOs"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 1DB6F944BA; Sun, 27 Feb 2022 06:40:00 +1000 (AEST) Received: from mail-oo1-f41.google.com (mail-oo1-f41.google.com [209.85.161.41]) by minnie.tuhs.org (Postfix) with ESMTPS id 9DE7A93D6E for ; Sun, 27 Feb 2022 06:39:59 +1000 (AEST) Received: by mail-oo1-f41.google.com with SMTP id i6-20020a4ac506000000b0031c5ac6c078so12211495ooq.6 for ; Sat, 26 Feb 2022 12:39:59 -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:content-language:to:from :subject; bh=T4+b3XLL/Zs9iuVHvLXXMW3yc51mTZVljQObOYnucRI=; b=WZa+KyOsIbTE1BRRslP+m54FZuIleE0fsiNnXzGzAbrnbIh9FmOrKJKHNQZpO8yaSe zIrkGflVw5mmsYUE8aUnHMI6h9qeZF96qFOH2Usm4dvlNrS9WrCsm7nSptRiD0ip3ZUQ z44bEVTWgMLp/u10JpV+RT1L/TuMtYua4SgeeTcYcTT2lyKglhcrsW9gSMCJCj8wGFl8 wH/lA+Ye9qBSGCBVkHcbLij4rfL1HFEUxridyhs2tXKGHbEPb+UiZobcTQYlmpTcsLSX 1YGq0ejAVWC2wJYTmCeT9X0kLh0sx3kz4yOOJVVkCPwgiukWdjRbBRj8OmFBK1TZg2fH DK9A== 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 :content-language:to:from:subject; bh=T4+b3XLL/Zs9iuVHvLXXMW3yc51mTZVljQObOYnucRI=; b=b7p6ONzcwD/Yc1joeyxPpZlrsAIj1+LzSGY8ox2u0EbdFdFKybm3woGDHHobAFPnRn Jyt4jpbZVgL77b/vwM5OTup0x3U2z4BivGzjSWudXTU2cqdkn5VADWwdrOl+JZQb7jT/ N5rJCPyVMBcMImhDLK4OWuhhIMSIwLyVTKE2drkmzv1Iryqn41raq1FGOqcRmx4NJbaw AXS3WNDTG/0d6wgZl8HxnSzKLyeZZ7DxIz0egXpJFllZPn85jV1WDHH3h/bVnncnpj91 U3iGQriyALGLFeOi3ggGHyfeNpirJ0PBoMxsmr0GsJ9YkHwdCnRPHdrSWDDoheabWxjk VG0Q== X-Gm-Message-State: AOAM533f0fqurBlR6G245lLMipYCbBIzfFphhTNVPykDIclLBJU71zbj owzXpe6LC3MBJMAtZK2UBHPgd0tVOs8= X-Google-Smtp-Source: ABdhPJxr8Ps7qLN2VJSJexqfgV4atenemgWUEtpcMybswjyvhD4IhfJMtSeTVlh7iWHERHT23TmgpA== X-Received: by 2002:a4a:88e9:0:b0:319:19d0:24c2 with SMTP id q38-20020a4a88e9000000b0031919d024c2mr5484620ooh.35.1645907998576; Sat, 26 Feb 2022 12:39:58 -0800 (PST) Received: from [192.168.1.85] (035-134-121-000.res.spectrum.com. [35.134.121.0]) by smtp.gmail.com with ESMTPSA id e12-20020a056870c0cc00b000d6bf3c0613sm2535671oad.43.2022.02.26.12.39.57 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 26 Feb 2022 12:39:58 -0800 (PST) Content-Type: multipart/alternative; boundary="------------fhpXqWEToXsobMIueMNobgqX" Message-ID: Date: Sat, 26 Feb 2022 14:39:57 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Content-Language: en-US To: TUHS main list From: Will Senn Subject: [TUHS] run commands at login in v6 and stty 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. --------------fhpXqWEToXsobMIueMNobgqX Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Login commands question: I'm sure it's simple, but I can't figure it out. How do I get something to run at login in v6? Right now, I use ed to create a file 'setprof' that contains: stty erase[space][backspace][return] stty nl0 cr0 Then after logging in: sh setprof It works, but, it is pretty clunky. stty question: So, I looked at stty.c and it looks like the following should work, if the terminal is sending ^H for backspace: #define BS0     0 #define BS1     0100000 modes[] ...         "bs0",         BS0, BS1,         "bs1",         BS1, BS1, but: stty bs0 or stty bs1 don't result in proper backspace handling.. but: stty[space][^h][return] works... Thoughts? --------------fhpXqWEToXsobMIueMNobgqX Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit Login commands question:

I'm sure it's simple, but I can't figure it out. How do I get something to run at login in v6? Right now, I use ed to create a file 'setprof' that contains:
stty erase[space][backspace][return]
stty nl0 cr0

Then after logging in:
sh setprof
It works, but, it is pretty clunky.

stty question:

So, I looked at stty.c and it looks like the following should work, if the terminal is sending ^H for backspace:
#define BS0     0
#define BS1     0100000

modes[]
...
        "bs0",
        BS0, BS1,

        "bs1",
        BS1, BS1,


but:
stty bs0
or
stty bs1

don't result in proper backspace handling..

but:
stty[space][^h][return]

works...

Thoughts?
--------------fhpXqWEToXsobMIueMNobgqX--