Re: (warn) isn't doing what I expect it to
- From: Kent M Pitman <pitman@xxxxxxxxxxx>
- Date: Wed, 31 Aug 2005 01:49:41 GMT
Lars Brinkhoff <lars.spam@xxxxxxxxxx> writes:
> (This is no longer very Lisp-related, so I'll just write this
> additional article.)
I don't see how a discussion of how Lisp I/O interacts with the computer
is somehow not related to Lisp, so I'll blunder forth.
> They don't see ^D, they see the current input line, without any
> terminting character.
Hmm. Interesting to know.
> (If the line is empty, there will be zero characters, interpreted as EOF.)
> For example, here's a Lisp session where I used ^D to enter three input
> lines:
>
> This is SBCL [...]
> * 42
> 42
> * (defun foo () (quit))
> FOO
> * (foo)[Exit]
Btw, for me, on both LispWorks 4.4.5 and Allegro 7.0 on Linux, control-D on
a teletype (i.e., in a REPL in a shell, not in some GUI/IDE thing)
neither echos nor has any apparent effect. Typed to Emacs with either
of these lisps beneath it by using control-Q to quote it into the
input stream, it just gets ignored, too. That is (if you assume my
notation ^D below is replaced by an actual control-D (ascii 4), then:
3^D4 => 34
(+ 3 ^D 4) => 7
I'm not challenging your claim--just offering information about how other
implementations handle it. (I assume. I guess it's possible it's the Linux
or my terminal settings.)
.
- Follow-Ups:
- Re: (warn) isn't doing what I expect it to
- From: Paul Foley
- keyboard EOF handling [Re: (warn) isn't doing what I expect it to]
- From: Christopher C. Stacy
- Re: (warn) isn't doing what I expect it to
- References:
- (warn) isn't doing what I expect it to
- From: Nathan Baum
- Re: (warn) isn't doing what I expect it to
- From: Nathan Baum
- Re: (warn) isn't doing what I expect it to
- From: Edi Weitz
- Re: (warn) isn't doing what I expect it to
- From: Nathan Baum
- Re: (warn) isn't doing what I expect it to
- From: Kent M Pitman
- Re: (warn) isn't doing what I expect it to
- From: Nathan Baum
- Re: (warn) isn't doing what I expect it to
- From: Pascal Bourguignon
- Re: (warn) isn't doing what I expect it to
- From: Kent M Pitman
- Re: (warn) isn't doing what I expect it to
- From: Lars Brinkhoff
- Re: (warn) isn't doing what I expect it to
- From: Kent M Pitman
- Re: (warn) isn't doing what I expect it to
- From: Lars Brinkhoff
- (warn) isn't doing what I expect it to
- Prev by Date: Re: discrete event simulator
- Next by Date: Re: ASDF: optimization settings and other enhancements
- Previous by thread: Re: (warn) isn't doing what I expect it to
- Next by thread: keyboard EOF handling [Re: (warn) isn't doing what I expect it to]
- Index(es):
Relevant Pages
|
|