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=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 30135 invoked from network); 25 Aug 2023 19:54:32 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 25 Aug 2023 19:54:32 -0000 ARC-Seal: i=2; cv=pass; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1692993272; b=mU0KMC6nd2V/EvaPpfOsCntm0Tqhrv8q1nNGgp5jpklwXDvUcWjU5ZS7upSzBHu7JxeHbtdWiq 6PkAy6+d/7u838BDORFdhbiPLMxJv1oU0DxpoepiF1GDrca9WoetJXnWRagrTstfKzSxld/Jmi ey54mr66Fypy4qNEIpsmCGarknEMZJew9Y0H9J1jeBxOhwOQEwWXvADXPOQdTpVhN65aRjoEi3 2E6k/iyDHJRGsrhPS3Y7upai1YK5EpMMpbEFaTWI6vU8qk8s6W3W5hBaQqrghFgCo7iK2A9Qu+ +gxX9A1ySTiHAHXKTId173ai+GUHkWkxIaluuc2tslj8YA==; ARC-Authentication-Results: i=2; zsh.org; iprev=pass (mail-dm6nam11on2081.outbound.protection.outlook.com) smtp.remote-ip=40.107.223.81; dkim=pass header.d=alum.mit.edu header.s=selector2 header.a=rsa-sha256; dmarc=none header.from=alum.mit.edu; arc=pass (i=1) header.s=arcselector9901 arc.oldest-pass=1 smtp.remote-ip=40.107.223.81 ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1692993272; bh=yqbPRFNlimXpFhos3eZcGUGB1PFug2FFhw5bCXDJ40w=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:MIME-Version:Message-ID:Subject:To:From:Date: DKIM-Signature:DKIM-Signature; b=Rzzg+93ZBFU6vCWhRGet84ECuqHpkX91OAbDdYLF+QE/iTZgOXd2QFXNimNGwdt9Wmk1e+q53G v1YmSy+L0C+BSLi25lwMeU4J9AOO7dEJKGfdoR0EHdTYmD2rijd5vWmt7UjIQGyhiMIxXjtQQS 21glhEo2PLX7d2li0mmAdVQBLTYREYXvVLh9eB70oIf100j6PfzyroNXDgFM2jsLx/GBrD41fo vRXMcvMlCgUBSbATyok/1QfX7paAdBtiDLxa3QfkzOnzoQA3FwwKIuWYBptrC6maxhnGYbl6Wp vESJzPvHAORWC/f9vOCW6uXFMTKp/zkq2r4SXRR6z5+EUw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:MIME-Version:Message-ID: Subject:To:From:Date:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=g+1zPIuFsCXB4cXR2dxaGmq/I1JZszbdV7uPd0a5z+0=; b=LKMVxbXcUc870PMe2dLEHx8WGY 8P6dnTCbWMtXKEvGz/B+3NwW7auP9xTGPSC/c236lmrLJnfQKpaq3JbxGyyaSijd4IYb5IEO/ROZo 0Cq8bHQQig9W3Qx1/btt4sLBex65rvyXpZS/1A4dED5x//tWuMfl9/QJCnDLs+xBuU3bUY++Y8jb1 GlKRGxbq1qSI3cYckInYvYyVKl42nftt6FLvXtZgSLNrnztDMStlUhF1Rjjq6ozdSOPPWLG/CjlC1 Uku6NagP7no9iwmzXzhVLoCGk3ttpf6f1oAtesjCV3cB68Ud+c8A9xyRNHlNZyJOjxKw9rmLUZb1I qnuhhVnQ==; Received: by zero.zsh.org with local id 1qZct2-000MxC-VJ; Fri, 25 Aug 2023 19:54:29 +0000 Authentication-Results: zsh.org; iprev=pass (mail-dm6nam11on2081.outbound.protection.outlook.com) smtp.remote-ip=40.107.223.81; dkim=pass header.d=alum.mit.edu header.s=selector2 header.a=rsa-sha256; dmarc=none header.from=alum.mit.edu; arc=pass (i=1) header.s=arcselector9901 arc.oldest-pass=1 smtp.remote-ip=40.107.223.81 Received: from mail-dm6nam11on2081.outbound.protection.outlook.com ([40.107.223.81]:13964 helo=NAM11-DM6-obe.outbound.protection.outlook.com) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1qZcrU-000MJ7-IQ; Fri, 25 Aug 2023 19:52:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JPrtBd+ssSP2dBIp8StQ34LBYCtebK3p3aRa/sVoRQwOFBQiO5s4AaZgDva91vE+tcRGRPgjs6xjgcAv+bM32BjBTba2WpSNvLjx5ygp4l3euQRGOAZGpETov/8U51PZ4QVw6sjYCoKrgwYHvyVutiIk/wdk79lKISt+RnMwew+1u+Kurn5gawJMZxNt5nnVXPj84IIV66dVaExIUfc96PgASIScEuQdVFsfkAXPM79ru9Y6X9MfnfWcLGOD4GGRQ4ScEWtYGkZMsuyocEw6a0SQMKfN4maoyzcLc+SMGfTNmbkXK3J4dN7brBuT7fLgNk98+mT6Q+4Qd75MAXb3SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=g+1zPIuFsCXB4cXR2dxaGmq/I1JZszbdV7uPd0a5z+0=; b=JQC74/qZMGYDADGMNZqccnW1HRnwMc72YoXB23CwYacJkxdET6mLGh6i/fNZB2iN+/BJGOyQsZPc3fLb6840cWXeC6gpgysBx6lOMMlGFnV35SvbxywZP0/0qpPAxhIEiSP6v6ZKEKI/b5VVFhCREwxFI9jFxIJ05OF0LHdunV0MVuuGqW9dya8dJ03CthJPJK5kXVTg8v1NEgUSskCsXlOc8dpBm0/w4wtCpQq7qNeWI9EEmZzeEumt0lHiE9+S2M/P78Hlaxpan7x9eLL8aKaWQCPXQrHSrvXIxs2tYrH8JFXyk+mJsiKoBodQ0+iHfoIGynaoOMywO1EvMMPvQA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 18.7.68.33) smtp.rcpttodomain=alum.mit.edu smtp.mailfrom=alum.mit.edu; dmarc=pass (p=none sp=none pct=100) action=none header.from=alum.mit.edu; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alum.mit.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=g+1zPIuFsCXB4cXR2dxaGmq/I1JZszbdV7uPd0a5z+0=; b=QE4ItU9t0QmucGgYqJ3mDvRECIWa7+cRvYdNq/dXJLfokZ1uE5PrVlVbgAc3AU5+hMykYG5QGgEb6YnFocFwxpmJ6WYWst2VEQeF3BdB8GxHajqOhn/jwpSc5Zpg5xcMn7M4v6lbLq96pqpPvi//XBKUVSDYjsVuv/+k4x3AGsU= Received: from DM6PR06CA0064.namprd06.prod.outlook.com (2603:10b6:5:54::41) by CH2PR12MB4198.namprd12.prod.outlook.com (2603:10b6:610:7e::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.29; Fri, 25 Aug 2023 19:52:49 +0000 Received: from CY4PEPF0000E9D7.namprd05.prod.outlook.com (2603:10b6:5:54:cafe::86) by DM6PR06CA0064.outlook.office365.com (2603:10b6:5:54::41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.30 via Frontend Transport; Fri, 25 Aug 2023 19:52:47 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 18.7.68.33) smtp.mailfrom=alum.mit.edu; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=alum.mit.edu; Received-SPF: Pass (protection.outlook.com: domain of alum.mit.edu designates 18.7.68.33 as permitted sender) receiver=protection.outlook.com; client-ip=18.7.68.33; helo=outgoing-alum.mit.edu; pr=C Received: from outgoing-alum.mit.edu (18.7.68.33) by CY4PEPF0000E9D7.mail.protection.outlook.com (10.167.241.78) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.14 via Frontend Transport; Fri, 25 Aug 2023 19:52:46 +0000 Received: from localhost ([50.230.201.134]) (authenticated bits=0) (User authenticated as jhawk@ALUM.MIT.EDU) by outgoing-alum.mit.edu (8.14.7/8.12.4) with ESMTP id 37PJqh9c023215 (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 25 Aug 2023 15:52:45 -0400 Date: Fri, 25 Aug 2023 15:52:43 -0400 From: John Hawkinson To: zsh-users@zsh.org Subject: Why does zsh clear to end-of-screen after prompt? Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000E9D7:EE_|CH2PR12MB4198:EE_ X-MS-Office365-Filtering-Correlation-Id: 10b99b07-9b7a-4697-e2c1-08dba5a4db30 X-LD-Processed: 3326b102-c043-408b-a990-b89e477d582f,ExtAddr,ExtFwd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lnfLJDRezvUovr44dRid3e0aJxPlsjkuMiiooc+Qm3TWCCcrd34iep3o9tJdarGwue06OmunxS12gEvWmmIyxxnTj5FAyaNcI4Sx1uDcCsrwdR58NHVTrW46WztP3kVXaGhvOKkMrxhNdFXTK9pgr+eQhbFTiwdEZZ10otYzu1kwfCTUyJoVJSSUmF8v8hBqd4H8H3NlrGGWhhmrGOs4W2j3zpnCOgThSY84G3s7FNBabTsS3T9i6plDLjLT4qogAZs0d+W8upApyyhj9D8nghjUusyoG1FPb4h3Lcj+eE6Cc0V/NDMOPcn4yXO/Iv0FyB2KCY+xRpRLMPP0yKMuX/Y2fSidWYFDmR3zmx60mtdNztcnl9Eofzg7TJc+coi1e1MPhD5MEQZSJo2AnCbew+HE4KMX4jyX/l3SW9ZOOpDfYB3ad8wdMvSCoJq0RcbPzjaZguBmm5HM9MIRoaN4Nx8G3XvvL+cpuWClIY/HAqvoqn5osJsKM+OAJpKPgOH4oUi0ctR8c2Cq0g/j/MIYfjPDmKNnYKoVmCLC9xBc647+cAlN0BjmYYweCT/jbb08JS4dUnIHm4xGsmxIZoAKwVqp/h9hm9KSBf0n61amFKVSMf/xGmC1skS4SjMCzu2sIfmphhgUEhxe3sTOEMuzyylCdJlOYoHc8DmnNnP8zt8oL3eNrgds+vKGayvXRwujW//V7nnhbv7FTn3QeHvXdA== X-Forefront-Antispam-Report: CIP:18.7.68.33;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:outgoing-alum.mit.edu;PTR:outgoing-alum.mit.edu;CAT:NONE;SFS:(13230031)(376002)(136003)(39860400002)(346002)(396003)(451199024)(1800799009)(82310400011)(186009)(46966006)(36840700001)(82740400003)(7596003)(356005)(75432002)(8676002)(8936002)(41300700001)(6916009)(316002)(41320700001)(786003)(70206006)(70586007)(86362001)(9686003)(40480700001)(47076005)(478600001)(26005)(336012)(36860700001)(2906002)(4744005)(956004)(5660300002);DIR:OUT;SFP:1101; X-OriginatorOrg: alum.mit.edu X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2023 19:52:46.9940 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 10b99b07-9b7a-4697-e2c1-08dba5a4db30 X-MS-Exchange-CrossTenant-Id: 3326b102-c043-408b-a990-b89e477d582f X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3326b102-c043-408b-a990-b89e477d582f;Ip=[18.7.68.33];Helo=[outgoing-alum.mit.edu] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000E9D7.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4198 X-Seq: 29197 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: When I reposition the cursor to the top left corner of the screen (or anywhere), as with ESC [ H, when zsh prints a prompt it clears from the prompt to the end of the screen, oblitering any text on the screen already, which defeats the point of my cursor positioning. Why does this happen, and why is it desirable? I can workaround it by setting TERM=dumb, but that has other annoying side effects. It does not appear to tbe the result of a precmd, and I still see it invoking zsh --no-rcs. To reproduce: seq 1 10; export TERM=xterm-color; echo "\e[H foo\n" Most of the ten lines output of seq is overwritten and nothing is seen. By contrast: seq 1 10; export TERM=dumb; echo "\e[H foo\n" prints the ten lines and moves the cursor to the top above them, as expected. How can I get cursor positining to work without forgoing, e.g., line editing? I feel like I'm missing something obvious. -- jhawk@alum.mit.edu John Hawkinson