From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 32e3abc9 for ; Wed, 7 Aug 2019 21:14:21 +0000 (UTC) Received: (qmail 3886 invoked by alias); 7 Aug 2019 21:14:08 -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: List-Unsubscribe: X-Seq: 24129 Received: (qmail 24207 invoked by uid 1010); 7 Aug 2019 21:14:08 -0000 X-Qmail-Scanner-Diagnostics: from mail-ua1-f48.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25531. spamassassin: 3.4.2. Clear:RC:0(209.85.222.48):SA:0(-2.0/5.0):. Processed in 2.932703 secs); 07 Aug 2019 21:14:08 -0000 X-Envelope-From: sgniazdowski@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.222.48 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=edvpx7uI+XhE9B7Qf+paDBY1qWveaO+Rft1w9A/QtrY=; b=VZCQT1IFjQToOeqP6cFvxZ8x/JZhk/0HmZUTxHbjKKM086kr85u/LQsfjch3pXJ6Na /AEdPQ4nrEmpAuAJMLEBUrBbfJbWACbGP+gOrO76RR9/Y6tw3EbOJV6lZAyN3ikexGDA BjhCf6qZtqq3zQ/+NQOFs7qNek5MyF0fUAcwmAGwDbZ76ULHOo+PujUoHoMnzhNELenQ w24ykWrtCsAZkqIv+5uaqOZoDvP+lgymWq4rUwsgjeL9oNbN0FIG6hCn+m409V+SPy4h GktsA8AEUveP25rHe4mFqCPjb5H0aLJlrBOWPb3gbddxNHugpN4tl3on2KJJJFVqNpqL f91A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=edvpx7uI+XhE9B7Qf+paDBY1qWveaO+Rft1w9A/QtrY=; b=s4TX1cROxLanlcHy3+fWsY4dqwnUb4C6EteJDRCJ+JlThSv2Pv0c9XtZnvuIKOFcJj eF6eCWJaqOLiXGgKRKTgtUGDdlDvx5nQmXCnhy8FBhO8EHQDghItMLFWW9M0Bec15C7h cUcr2Zlzti6pvrV6g6cTpx4Sc9G6ZTA+4CMn+1zu9j/a/jdQti3YYECNNYR/08cftwNv urZ85xoinit0d4uEBwP/546iXmxA+rRg/2pBH/6cb+h4+nf8udWPNa81fLrsUTlKbbqe 2OfJkDOiCn7RkSiE7SdpRKyBR5qtA5q2MT2fY/wpgvUwDoLXLVH+NcX2R1QUFDA2gSTh z1GA== X-Gm-Message-State: APjAAAWDyQrvOhJ33zXf12np8zG0l6v4vGraELfgew4dP1u8k5EuLmwY 6K9w2+qFlUh9HVtkRc8Kcj2Qh1G1NvE5F3tV+wQ= X-Google-Smtp-Source: APXvYqxzb1IkX/QexVi70KXAYc4fB+GNI0DsQKxAhIjqdXCoGeKGkEjCgeh9fLpkIDwOs37vhZFrtfcy3FQevvDe+t8= X-Received: by 2002:ab0:18a6:: with SMTP id t38mr7300692uag.83.1565212411233; Wed, 07 Aug 2019 14:13:31 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Sebastian Gniazdowski Date: Wed, 7 Aug 2019 23:13:19 +0200 Message-ID: Subject: Re: zcurses hello world To: Justin Garrison Cc: Zsh Users Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Here's a complete hello world script: #!/usr/bin/env zsh zmodload zsh/curses || exit 1 zcurses init zcurses move stdscr 2 2 zcurses string stdscr "Hello World!" zcurses refresh sleep 2 # More: add a window with a border zcurses addwin win2 10 25 5 10 stdscr zcurses border win2 zcurses move win2 1 2 zcurses string win2 "Hello World!" zcurses refresh win2 sleep 5 zcurses end On Wed, 7 Aug 2019 at 01:07, Sebastian Gniazdowski wrote: > > You need to add some content and then call refresh. So for example add so= me text or draw the window's border. > > sob., 3 sie 2019, 02:32 u=C5=BCytkownik Justin Garrison napisa=C5=82: >> >> I'm trying to write a cli app with zcurses. I've looked at feedz, zmixer= , >> and tetriscurses and also ZUI but I couldn't find any very basic hello >> world examples. I also found that feedz and zmixer don't work for me (zs= h >> 5.7.1). >> >> The only documentation I found was >> http://zsh.sourceforge.net/Doc/Release/Zsh-Modules.html#The-zsh_002fcurs= es-Module >> and >> when trying zcurses init && zcurses addwindow ... nothing seems to happe= n >> for me. >> >> I also watch the videos on ncurses UI in zcurses but that all uses ZUI >> which has it's own implementation. >> >> Does someone have basic/intro hello world examples for zcurses? >> >> Thanks >> >> -- >> Justin Garrison >> justingarrison.com --=20 Sebastian Gniazdowski News: https://twitter.com/ZdharmaI IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin Blog: http://zdharma.org