From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <9front-bounces@9front.inri.net> X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from 9front.inri.net (9front.inri.net [168.235.81.73]) by inbox.vuxu.org (Postfix) with ESMTP id 55CE12ED06 for ; Tue, 10 Sep 2024 04:24:15 +0200 (CEST) Received: from hognose1.porkbun.com ([35.82.102.206]) by 9front; Mon Sep 9 22:22:24 -0400 2024 Received: from ninevoid.space (syn-107-146-182-244.res.spectrum.com [107.146.182.244]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: thedaemon@thedaemon.space) by hognose1.porkbun.com (Postfix) with ESMTPSA id E71BF44EB0 for <9front@9front.org>; Tue, 10 Sep 2024 02:22:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thedaemon.space; s=default; t=1725934942; bh=MInV8X+HngHS25TM3o8lh0eN1ZmuTDTH4VQdaNUgxoQ=; h=To:Subject:Date:From:In-Reply-To; b=FuWTyPwcsPpn/N6jU+QE5aqxhX7XcxAI1fWp6mKcUAixPo2FLa3/GDZPu9h0OfyIa ZxzCcqOORHFWnBTWenY5sjDHgccCC/E3yDZ5tfgmqh11Lva/c7CSdoSJetp3QUD1qL B+cgRxh0F92biRnBHHvNqF0oYxBHT0qruIBvooYQ= Message-ID: To: 9front@9front.org Date: Mon, 09 Sep 2024 21:22:17 -0500 From: thedaemon@thedaemon.space In-Reply-To: <92e415df-3594-42fc-8d8a-e9428dd61a68@sirjofri.de> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: optimized table injection control Subject: Re: [9front] Patch: snarf paste support for (e)enter, and refactoring Reply-To: 9front@9front.org Precedence: bulk Quoth sirjofri : > Hello, > > This patch adds snarf and paste support to the two library functions enter and eenter. It also adds an internal function _genenter to share lots of the code. This does not change the interfaces of (e)enter though, for compatibility reasons. > > In total, this adds 100 lines of code, but removes duplicate code for drawing and interpreting input. > > I did test it with standard ascii, as well as some simple sequences of greek letters, but there could still be bugs. UTF-8 handling code is mostly inspired by/copied from acme. > > More importantly, I can imagine you don't like the structure here and there, as it's more complex than the simple approach we currently have. Just let me know and I'll adjust it accordingly. > > The patch is pretty long, so here's just a link to the file. If needed, I can also paste the data directly, just let me know. > > https://sirjofri.de/oat/patches/eesp.diff > > sirjofri Thank you! I will try this out as soon as I can figure out how to apply this. One day I'll use diff enough to memorize the command, that is not today.