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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 29140 invoked from network); 8 Jan 2024 01:35:00 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 8 Jan 2024 01:35:00 -0000 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:Subject:Cc:To:From:Date: References:In-Reply-To:Message-Id:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=c8T4U7e0WPqhH2oD2m4iYUUlvHIrHMhqjNvOC9eW5ig=; b=Nh+i/UWDkJnjqw1wYlYPHjFRp4 TCMTIxa8HsB6bc/6l2Rm4yV/GIANXXc3y9liekRTrewaxZVPNYR0SAjo+RBQV7OQWsSADjvyWGt3N J3iNb01e9gCpR9cd5MSeIk7DhO13OOMIt8PQnqDpinUOiHhhlT8LyFSaay5fnZzlPpLsdHkPCXrm6 27qDfkxTyRDymuE63NQNhcedZIGqCXPVw/g6T15QYCsU+h+2iNdnLZgx3go3J3nW29nEfIb7OOKb0 jufBCDFNAAjpXb53lg3jah86qxFGdoZyuRfNj/d1vbgnYbgMSXcoguRUcROUOC/O8NFVsHwrEwaKc RxO/YsZw==; Received: by zero.zsh.org with local id 1rMeXc-0005rg-6x; Mon, 08 Jan 2024 01:35:00 +0000 Received: by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1rMeX2-0005AV-CO; Mon, 08 Jan 2024 01:34:26 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id 8561A27C005A; Sun, 7 Jan 2024 20:34:22 -0500 (EST) Received: from imap48 ([10.202.2.98]) by compute2.internal (MEProxy); Sun, 07 Jan 2024 20:34:22 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdehhedgfeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderreejnecuhfhrohhmpefnrgif rhgvnhgtvgcugggvlhojiihquhgviicuoehlrghrrhihvhesiihshhdrohhrgheqnecugg ftrfgrthhtvghrnhepleekheejgfdufeegkeeugedugefhvedvleejheeiueffheevjefg heethfduvefhnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homheplhgrrhhrhihvodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdduudeh udekjeejtdegqdduudelvdejfeekhedqlhgrrhhrhihvpeepiihshhdrohhrghesfhgrsh htmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: iaa214773:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 3667131A0065; Sun, 7 Jan 2024 20:34:22 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1364-ga51d5fd3b7-fm-20231219.001-ga51d5fd3 MIME-Version: 1.0 Message-Id: <87138703-4509-46df-a997-3adad6865e0a@app.fastmail.com> In-Reply-To: <65f20b90-1205-4e6e-abe4-c91260524f39@eastlink.ca> References: <44f0d2b0-cf76-499b-b172-d7c5c1d00b03@eastlink.ca> <65f20b90-1205-4e6e-abe4-c91260524f39@eastlink.ca> Date: Sun, 07 Jan 2024 20:34:00 -0500 From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= To: "Ray Andrews" Cc: zsh-users@zsh.org Subject: Re: mnemonic 'ENTER' with zcurses Content-Type: text/plain X-Seq: 29434 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: On Sun, Jan 7, 2024, at 8:08 PM, Ray Andrews wrote: > On 2024-01-07 16:50, Bart Schaefer wrote: > >> I'm not an expert on this, but I believe in this case ENTER means the key on the keypad, > What we used to call the grey keys. Yup, that returns ENTER. So > they're unique here. Ok then, no mnemonic for '\n' then. Seems like > an omission but it is what it is. The man page you linked covers this. Some keys may be the same as commonly used control keys, e.g., KEY_ENTER versus control/M, KEY_BACKSPACE versus control/H. Some curses implementations may differ according to whether they treat these control keys specially (and ignore the terminfo), or use the terminfo definitions. Ncurses uses the terminfo definition. If it says that KEY_ENTER is control/M, getch will return KEY_ENTER when you press control/M. Generally, KEY_ENTER denotes the character(s) sent by the Enter key on the numeric keypad: - the terminal description lists the most useful keys, - the Enter key on the regular keyboard is already handled by the standard ASCII characters for carriage-return and line-feed, - depending on whether nl or nonl was called, pressing "Enter" on the regular keyboard may return either a carriage-return or line-feed, and finally - "Enter or send" is the standard description for this key. -- vq