From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eduardo Ochs Newsgroups: gmane.emacs.devel Subject: Re: How to make custom REPL work in ansi-term? Date: Mon, 8 Jan 2024 15:30:13 -0300 Message-ID: References: <20240108161602.0ae166ce@jcubic> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000d406bc060e735cef" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30149"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs developers To: "Jakub T. Jankiewicz" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jan 08 19:29:11 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rMuN5-0007a1-En for ged-emacs-devel@m.gmane-mx.org; Mon, 08 Jan 2024 19:29:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rMuMU-0002r0-PA; Mon, 08 Jan 2024 13:28:34 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rMuMN-0002dp-VB for emacs-devel@gnu.org; Mon, 08 Jan 2024 13:28:30 -0500 Original-Received: from mail-yb1-xb34.google.com ([2607:f8b0:4864:20::b34]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rMuML-0004uS-8T for emacs-devel@gnu.org; Mon, 08 Jan 2024 13:28:27 -0500 Original-Received: by mail-yb1-xb34.google.com with SMTP id 3f1490d57ef6-dbed788aad4so1098251276.3 for ; Mon, 08 Jan 2024 10:28:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704738502; x=1705343302; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=rqnJe58Q89bHpwNUSm2Sg85xqg88IBt+bLsXzc0Gdeg=; b=CI4pvMfUXDgu5SH+biUnqhp0eq9QQC/Fx/FnQJ73d+L482SiZkoQe70KpwB/3nwHAb R7dZ++snfbnCfR223vMqX1jDi+XoWlEoMp7btRYSpiP9H2eirfOgWOhyb2drQUj6Osaq 6mWBlFSusxlJBwlTBjviRfqKYY2uQPRz+VHBDuy+Vnqr0SMYeiql9A6ZsWUVSqFihYJN /yqYhKZG+AyAPjSCgH3H7/J8jlh/Nb1T4SlYXpJRRNHtpefnGMr7PS073cJ3TU7k8ZID 9qB25vYaLOZ4D+0WlY59XoscLoER/1eNyRg3Z4FguD9J3o+rqxt2bxPoNLOnGZS2amE0 Aytg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704738502; x=1705343302; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=rqnJe58Q89bHpwNUSm2Sg85xqg88IBt+bLsXzc0Gdeg=; b=sLx73BROoTRRtIDxyG++9/PPW9wX1NfCghzoo5pXwkqbKnI/YFujs/LFsX2Em3Wr5+ mltPdibZneXjExXKiUo6TY98pwYavxAFBGh2CMiMCWX5kZBPaY7EgLEj5DQ/v6ILgOSB dQbcyXzikESwuwsL5HMXBccC/BsQEEIQ1kWlUuNL4EhtzeT0reQESB0/dwe3CNuxNNMQ 77axZlRFQky4cnq8XzEJbXbPfQr3xaG7nR98kb6lJAwOiI3um1v0kEw69wq3Ply5oeRC aINU4aPx81vNHS6tpe8sS5PVD/LvBa+HvxCm5KpZy5BwYTQ06e/ab6KImuUSCysXFxjx WpRw== X-Gm-Message-State: AOJu0Yww/dBE0hefjtm6MVTltKxwVM89h6+R8nu42GmV/4yCrEvA0/6i ilHCzwb5Sjhy5J+85XAGVXLqJA8Q/KREl65Q9f6tU8k0 X-Google-Smtp-Source: AGHT+IEXoGnKUtaEjUisQsjp14DzoSouAgo2CO0lw1BBWdzHFdcnbovDnGMWP6stx+OIoJpdbGC1/tpZrlBtNzhSp2k= X-Received: by 2002:a25:b1a1:0:b0:dbd:9cd6:8c64 with SMTP id h33-20020a25b1a1000000b00dbd9cd68c64mr1574578ybj.93.1704738501689; Mon, 08 Jan 2024 10:28:21 -0800 (PST) In-Reply-To: <20240108161602.0ae166ce@jcubic> Received-SPF: pass client-ip=2607:f8b0:4864:20::b34; envelope-from=eduardoochs@gmail.com; helo=mail-yb1-xb34.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:314757 Archived-At: --000000000000d406bc060e735cef Content-Type: text/plain; charset="UTF-8" Hi Jakub, can you check if your REPL works in vterm and in eat? I use REPLs in Emacs a lot - see: http://anggtwu.net/eepitch.html and there are a few programs that don't run well in ansi-term but that do in vterm... Cheers, Eduardo Ochs On Mon, 8 Jan 2024, 14:18 Jakub T. Jankiewicz, wrote: > Hi, > > I was asking similar question long ago, I'm not able to find replies on my > mailbox but found a reference on question on Stack Overflow: > > https://stackoverflow.com/a/61300784/387194 > > The problem is that my REPL written in NodeJS doesn't work in Emacs > ansi-term, you can use arrow keys for navigation and history. > > The same happen with native nodeJS command line. When moving cursor it add > escape sequences to the input. NodeJS doesn't use readline library only > it's > own implementation written in JavaScript that's probbaly not 100% > compatible > with real readline. > > Is there something that NodeJS can do to fix the issue. Or maybe you can > give > me a pointers on what to search for in other to fix the issue. I may look > into > the source code and fix the issue. > > -- > Jakub T. Jankiewicz, Senior Front-End Developer > https://jcubic.pl/me > https://koduj.org > > --000000000000d406bc060e735cef Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Jakub,
can you check if your REPL wor= ks in vterm and in eat? I use REPLs in Emacs a lot - see:
and there are a few programs that = don't run well in ansi-term but that do in vterm...
=C2=A0 Cheers,
=C2=A0 =C2=A0 Eduardo Ochs
<= div dir=3D"auto">