From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17550 invoked by alias); 29 Jun 2010 09:10:35 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 15131 Received: (qmail 28392 invoked from network); 29 Jun 2010 09:10:24 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 74.125.82.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=fCpoaB7qMjXzNGNZL9tPsLCEbViQfwsLgW0z9eQ4XcY=; b=wHkdQJ84TBiaADPIaqls4jIoc1YI3ADyKq2N8vhKWaPsWUU7UHPSAJfmVNRF8GKo9T r4LSQeSKOnzTtRtWc9Rn1RzTjN5ZLF2X+eGnmKe8q4BI6xRB6qioqT6hH2bg1tJpzIf9 8sEcL8lUW2//Z6uRCYJM6rl0Fvcr2S5C5eeb8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=LZ4sy3bYf698WoDDNPXtjjJoAanK98OLk/Yksn7qLU989FI2jzERC7Z8hHf12YgLmD 63uaxp2y1hEwXTJPLARpXdRiBNqNYbrM+jHd14MCIVvYH6o9sJveqd8QB6bTb54VUXfk xmr9lWJCDk9V0AKHtmPMkKmU1is2Rc9uhqWGk= Date: Tue, 29 Jun 2010 11:13:18 +0200 From: Anthony Charles To: zsh-users ml Subject: Tcp and curses questions Message-ID: <20100629091318.GA14228@layslair.ath.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Hi, I'm working on a script using curses and tcp modules (a client for mpd, the music player daemon) so using zsh only for fun. I have two questions about those modules : First, I just connect for tests on localhost port 6600 (mpd default) but when I do tcp_close at the end of the script, it always takes ~5 sec to terminate (tested on different machines). It seems that the ztcp at line 66 in tcp_close takes some time. Is there a way to avoid this ? Second, I don't understand how to use zcurses scroll as when it automatically scrolls, display is not refreshed (borders and content of the window), windows lost their content and I have to redo it manually. (see http://www.zsh.org/mla/workers/2007/msg00941.html for example) Am I missing something ? Thanks. -- Anthony CHARLES