#!/usr/local/bin/zsh -x

zmodload zsh/curses

trap 'echo USR1' USR1

main_screen=test

zcurses init

zcurses addwin $main_screen $(( $LINES -10)) $(($COLUMNS - 10)) 5 5

while zcurses input $main_screen inp spe_inp
do
echo $inp
done

zcurses delwin $main_screen
zcurses end

exit 0

