unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Alex Vong <alexvong1995@gmail.com>
To: Andy Wingo <wingo@pobox.com>
Cc: guile-user@gnu.org
Subject: Re: C-c in guile
Date: Thu, 02 Mar 2017 00:03:22 +0800	[thread overview]
Message-ID: <877f49ass5.fsf@gmail.com> (raw)
In-Reply-To: <87poi3quqj.fsf@pobox.com> (Andy Wingo's message of "Mon, 27 Feb 2017 20:49:56 +0100")

[-- Attachment #1: Type: text/plain, Size: 689 bytes --]

Andy Wingo <wingo@pobox.com> writes:

> On Sat 21 Jan 2017 12:55, Alex Vong <alexvong1995@gmail.com> writes:
>
>> However, when running the external program "yes" in guile,
>>
>>   $ guile -c '(system* "yes")'
>>
>> We cannot terminate the process by pressing C-c,
>
> Indeed I can reproduce this!
>
>> but we can suspend it by pressing C-z.
>
> I believe the C-z is handled by the shell, not Guile; AFAIU.
>
> I don't know how this should work (mechanics) but I agree with you that
> probably it should!
>
I've just checked, a python equivalence of the above command works:

     $ python -c 'import subprocess; subprocess.call("yes")'

Maybe some ideas can be extracted from it.

> Andy

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

  reply	other threads:[~2017-03-01 16:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-21 11:55 C-c in guile Alex Vong
2017-01-21 14:53 ` Matt Wette
2017-01-22  6:54   ` Alex Vong
2017-01-23 16:05     ` Vladimir Zhbanov
2017-02-27 19:49 ` Andy Wingo
2017-03-01 16:03   ` Alex Vong [this message]
2017-05-15 17:46 ` Alex Vong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877f49ass5.fsf@gmail.com \
    --to=alexvong1995@gmail.com \
    --cc=guile-user@gnu.org \
    --cc=wingo@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).