Groups | Search | Server Info | Login | Register


Groups > comp.unix.questions > #564

Re: xterm rlwrap sbcl

From Salvador Mirzo <smirzo@example.com>
Newsgroups comp.unix.questions
Subject Re: xterm rlwrap sbcl
Date 2025-01-12 22:06 -0300
Organization A noiseless patient Spider
Message-ID <875xmj4j4r.fsf@example.com> (permalink)
References <87frmtofu3.fsf@example.com> <vm1hk4$1etjc$4@dont-email.me>

Show all headers | View raw


Bozo User <anthk@disroot.org> writes:

> On 2024-12-12, Salvador Mirzo <smirzo@example.com> wrote:
>> I know next to nothing about terminals.  My .profile says TERM=xterm.
>>
>> $ echo $TERM
>> xterm
>>
>> I really am running PuTTY on Windows and logging in to a FreeBSD system.
>>
>> When I invoke ``rlwrap sbcl'', I get a little bug:
>>
>> --8<-------------------------------------------------------->8---
>> $ rlwrap sbcl
>> This is SBCL 2.4.9, an implementation of ANSI Common Lisp.
>> More information about SBCL is available at <http://www.sbcl.org/>.
>>
>> SBCL is free software, provided as is, with absolutely no warranty.
>> It is mostly in the public domain; some portions are provided under
>> BSD-style licenses.  See the CREDITS and COPYING files in the
>> distribution for more information.
>> * (f(format t "hello~%")
>> hello
>> NIL
>> --8<-------------------------------------------------------->8---
>>
>> Of course, I typed 
>>
>>   (format t "hello~%")
>>
>> but we end up seeing 
>>
>>   (f(format t "hello~%")
>>
>> If I type
>>
>>   (write-string "hello")
>>
>> we end up with 
>>
>> * (w(write-string "hello")
>> hello
>> "hello"
>>
>> You get the idea.  This doesn't happen with other programs.  It seems to
>> be something specific to sbcl, though I could hardly believe that sbcl
>> is guilty of anything here.
>>
>> Any remedies?
>
> You can try using vim+slimv, it's much better than a simple REPL

Thanks!  It turns out I replaced FreeBSD with OpenBSD and I cannot
reproduce the problem on the OpenBSD system.  So, to me, personally, the
problem is eliminated---but there's something going on in FreeBSD, which
should be looked at.  I have no intuition on the problem.

$ rlwrap sbcl
This is SBCL 2.4.8.openbsd.sbcl-2.4.8, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
* (format t "hello~%")
hello
NIL
* 

$ uname -a
OpenBSD b.local 7.6 GENERIC.MP#338 amd64

$ rlwrap --version
rlwrap 0.46.1

Back to comp.unix.questions | PreviousPrevious in thread | Find similar


Thread

xterm rlwrap sbcl Salvador Mirzo <smirzo@example.com> - 2024-12-11 22:22 -0300
  Re: xterm rlwrap sbcl Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-12-12 06:05 +0000
    Re: xterm rlwrap sbcl Paul <nospam@needed.invalid> - 2024-12-12 07:20 -0500
      Re: xterm rlwrap sbcl Salvador Mirzo <smirzo@example.com> - 2024-12-12 13:00 -0300
        Re: xterm rlwrap sbcl Paul <nospam@needed.invalid> - 2024-12-12 18:57 -0500
          Re: xterm rlwrap sbcl Grant Taylor <gtaylor@tnetconsulting.net> - 2024-12-12 20:40 -0600
          Re: xterm rlwrap sbcl Salvador Mirzo <smirzo@example.com> - 2024-12-13 20:40 -0300
            Re: xterm rlwrap sbcl Salvador Mirzo <smirzo@example.com> - 2024-12-13 20:49 -0300
              Re: xterm rlwrap sbcl Paul <nospam@needed.invalid> - 2024-12-13 19:55 -0500
                Re: xterm rlwrap sbcl Salvador Mirzo <smirzo@example.com> - 2024-12-14 18:51 -0300
    Re: xterm rlwrap sbcl Salvador Mirzo <smirzo@example.com> - 2024-12-25 22:01 -0300
  Re: xterm rlwrap sbcl Eli the Bearded <*@eli.users.panix.com> - 2024-12-13 03:06 +0000
    Re: xterm rlwrap sbcl Salvador Mirzo <smirzo@example.com> - 2024-12-13 20:59 -0300
  Re: xterm rlwrap sbcl Oregonian Haruspex <no_email@invalid.invalid> - 2024-12-13 07:03 +0000
    Re: xterm rlwrap sbcl Paul <nospam@needed.invalid> - 2024-12-13 03:22 -0500
  Re: xterm rlwrap sbcl Bozo User <anthk@disroot.org> - 2025-01-12 23:01 +0000
    Re: xterm rlwrap sbcl Salvador Mirzo <smirzo@example.com> - 2025-01-12 22:06 -0300

csiph-web