From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Linas Vepstas Newsgroups: gmane.lisp.guile.user Subject: Re: scm_shell in C-Thread - Quit vs. Terminal Corruption Date: Fri, 16 Oct 2009 21:49:34 -0500 Message-ID: <3ae3aa420910161949q2a683ce3m2957e061e1814441@mail.gmail.com> References: <20091016190925.GA26534@shoikan> Reply-To: linasvepstas@gmail.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1255747806 17674 80.91.229.12 (17 Oct 2009 02:50:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 17 Oct 2009 02:50:06 +0000 (UTC) Cc: guile-user@gnu.org To: vimml@selgrad.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Oct 17 04:49:55 2009 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MyzMf-0003w6-VC for guile-user@m.gmane.org; Sat, 17 Oct 2009 04:49:54 +0200 Original-Received: from localhost ([127.0.0.1]:45469 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MyzMf-0003KF-9r for guile-user@m.gmane.org; Fri, 16 Oct 2009 22:49:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MyzMS-0003J6-MG for guile-user@gnu.org; Fri, 16 Oct 2009 22:49:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MyzMO-0003Eq-6s for guile-user@gnu.org; Fri, 16 Oct 2009 22:49:40 -0400 Original-Received: from [199.232.76.173] (port=45064 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MyzMO-0003Ej-3q for guile-user@gnu.org; Fri, 16 Oct 2009 22:49:36 -0400 Original-Received: from mail-yw0-f194.google.com ([209.85.211.194]:40584) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MyzMN-00023S-Qf for guile-user@gnu.org; Fri, 16 Oct 2009 22:49:35 -0400 Original-Received: by ywh32 with SMTP id 32so2259290ywh.14 for ; Fri, 16 Oct 2009 19:49:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=zDAL+LmbPHw7UTKzWVoZSpMl0B2gO4djgyysCJYS0JQ=; b=ulAqyJAobivJ5zRbb9T7YXBPW+VqWyJJU+DMfQRi5Z2D2XnOKCuzMwWrgAgda3CiRS OT41lkypxT2+TAhQOH4Wckg5fcfqR6SvEofViQh8NEr3PJXWLBDuEmONNvwYWRdQbOGF S0wnq6EZ3R+0P6SdJqIkuHq6MjdEFfBCWkv2c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; b=BXCsRruWGv/pNAiPhs37rDmxiKGK3XRElM4svo/CeZxeSSPXvXk0ojCUpx4hbXxysx kjdoWSp4DL8gdeOLZdX4hnWiwtY3khJDwaXAO6PuLJjQz12TaXactp/2/g9B1LKohCtW o495gaIXCOe0SObWOCcD5KoqUJVT3j3QgjIHQ= Original-Received: by 10.101.56.19 with SMTP id i19mr2793356ank.134.1255747774665; Fri, 16 Oct 2009 19:49:34 -0700 (PDT) In-Reply-To: <20091016190925.GA26534@shoikan> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:7443 Archived-At: 2009/10/16 : > > Hitting return three times yields: > shellprompt ~ $ shellprompt ~ $ shellprompt ~ $ I didn't quite understand everything, but -- saying "stty sane" should fix this problem. I'm not sure what stty sane does, its some sequence of calls to tcsetattr I guess. strace reports that its opost isig icanon echo ... so you should use atexit, and have the atexit routine do the tcsetattr -- right? --linas