From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 109448 invoked by alias); 26 Feb 2016 00:48:57 -0000 Mailing-List: contact kawa-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: kawa-owner@sourceware.org Received: (qmail 109434 invoked by uid 89); 26 Feb 2016 00:48:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,SPF_PASS autolearn=ham version=3.3.2 spammy=andrea X-HELO: mail-wm0-f54.google.com Received: from mail-wm0-f54.google.com (HELO mail-wm0-f54.google.com) (74.125.82.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 26 Feb 2016 00:48:55 +0000 Received: by mail-wm0-f54.google.com with SMTP id c200so52240329wme.0 for ; Thu, 25 Feb 2016 16:48:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=wG20SMmBOjID9wwjN9BpgIbOMaOhf7J8LN2E+SCh0aY=; b=hmZCJYsbXOUpjfrRF87A63oQ3tAFkeQH1VzOWw1XURDwbWevs2XJ07gfk5KDIxAhbj NRVAGDcUhAKNguTRY++IGVnHjvOM/vU0KFj7gmf14PCeXyc9nVmjWZTMgvrSaOsTdFSx HYJgWHVzNISO+1EkOho7oTJPiQx21sJERwGAq2Pz19TdxeVT/W6LS4emtS89aca8390v Hg3vkC5ijWJL014hbWiXZgZZ0sHFunqWkYCKhfVd0cCBWXgpqAou9NHQ+RG4P8BzlVBS wOAyh3Dm6BzLu1UGPRdoefp3Ih+gIGL577WeMi+Q0HPuO2UHX0Flg+LWAmBcxdlA7Cya HguA== X-Gm-Message-State: AG10YOQnoeEBgJWWMChgf7U47pgVarARTTzMTEo/7qEhKdV7MH2UIR8ZjeN1qVhs8LfjCw== X-Received: by 10.194.77.15 with SMTP id o15mr54461642wjw.41.1456447732455; Thu, 25 Feb 2016 16:48:52 -0800 (PST) Received: from asus ([31.185.145.84]) by smtp.gmail.com with ESMTPSA id z65sm746242wmg.1.2016.02.25.16.48.51 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 25 Feb 2016 16:48:52 -0800 (PST) Date: Fri, 26 Feb 2016 00:48:00 -0000 From: Andrea Bernardini To: Per Bothner Cc: kawa@sourceware.org Subject: Re: tab-completion implemented for Kawa Message-ID: <20160226004847.7b4806e9@asus> In-Reply-To: <56CF9386.6040001@bothner.com> References: <56CE6324.80502@bothner.com> <56CF9386.6040001@bothner.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-q1/txt/msg00030.txt.bz2 On Thu, 25 Feb 2016 15:51:34 -0800 Per Bothner wrote: > On 02/25/2016 03:33 PM, Andrea Bernardini wrote: > > Hi Per, > > This is a very nice feature! > > Thanks! > > > > BTW, something I miss in the Kawa REPL is some kind of history. I'm > > used to the bash shell, where you can use the up arrow key to get > > the previous executed commands. Currently pressing the arrow key in > > Kawa inserts a weird sequence of characters. > > That what the arrow keys are supposed to send. However, Java doesn't > have a portable pure-Java mechanism to interpret those key sequences. > > > I know that other languages' > > REPLs have the same problem (like Racket), however there are some > > that support this feature (Python, Haskell). Do you think that > > could be doable for Kawa? > > That's what the --enable-kawa-frontend configure option does. It > compiles a C program as a front-end to Kawa. This front-end program > uses GNU readline. There may be some portability issues with the > frontend - I haven't made any effort to port it, and it would > certainly need major changes on Windows. Interesting. I just tried on Debian, it works, thanks > More portable is the JLine2 support I recently announced. That is a > 99%-pure-Java re-implementation of GNU readline. That gives you > input editing, history, and (now) tab-completion. This works too, and with the tab completion indeed, great!