#!/bin/sh #---------------------------------------------------------------------------------------- # /var/install/bin/yowsup-start-client - start client program # # Copyright (c) 2015-2016 The Eisfair Team, team(at)eisfair(dot)org # # Creation: 2015-12-31 jed # Last Update: $Id$ # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #---------------------------------------------------------------------------------------- # read eislib . /var/install/include/eislib act_pmode=`get_printmode` # check if screensize handling is available if [ "${_EISLIB_SCREENSIZE_Y}" != '' ] then if check_screensize then # # define maxrownum = _EISLIB_SCREENSIZE # - 3 Header Lines # - 1 Footer Lines # ask line maxcolnum=`expr ${_EISLIB_SCREENSIZE_X} - 1` maxrownum=`expr ${_EISLIB_SCREENSIZE_Y} - 4` true else mecho --info "Return to calling script" exit 1 fi else # default if screensize handling is not available maxcolnum=79 maxrownum=18 fi maxcolnum=60 seperator=`printf '%*s\n' ${maxcolnum} "" | tr ' ' '-'` yowsup_config_file=${HOME}/.yowsup-config clrhome mecho --info "Yowsup Client Interface" echo if [ -f ${yowsup_config_file} ] then mecho -n "enter '" mecho -n --info "CTRL-C" echo "' to exit program." echo # allow to read program output if CTRL-C is pressed trap 'sleep 3; exit 0' SIGINT yowsup-cli demos --config ${yowsup_config_file} --yowsup else mecho --warn "The required configuration file '${yowsup_config_file}' could not be found!" anykey fi exit 0