Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zcurses hello world
- X-seq: zsh-users 24129
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Justin Garrison <justinleegarrison@xxxxxxxxx>
- Subject: Re: zcurses hello world
- Date: Wed, 7 Aug 2019 23:13:19 +0200
- Cc: Zsh Users <zsh-users@xxxxxxx>
- 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==
- In-reply-to: <CAKc7PVD3r4f-JjFQTKO0tv=f6vHntZcOEyTUwCX8Yf0H2ZFtUQ@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CANS=CAfH6H6ruWQzdVPe3Xfk2AJ8kyyT3vVcJ2L3kumsbAEj3w@mail.gmail.com> <CAKc7PVD3r4f-JjFQTKO0tv=f6vHntZcOEyTUwCX8Yf0H2ZFtUQ@mail.gmail.com>
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
<sgniazdowski@xxxxxxxxx> wrote:
>
> You need to add some content and then call refresh. So for example add some text or draw the window's border.
>
> sob., 3 sie 2019, 02:32 użytkownik Justin Garrison <justinleegarrison@xxxxxxxxx> napisał:
>>
>> 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 (zsh
>> 5.7.1).
>>
>> The only documentation I found was
>> http://zsh.sourceforge.net/Doc/Release/Zsh-Modules.html#The-zsh_002fcurses-Module
>> and
>> when trying zcurses init && zcurses addwindow ... nothing seems to happen
>> 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
--
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org
Messages sorted by:
Reverse Date,
Date,
Thread,
Author