#!/bin/sh #---------------------------------------------------------------------------------------- # /var/install/bin/telegram-start-client - start client program # # Copyright (c) 2016-2023 The Eisfair Team, team(at)eisfair(dot)org # # Creation: 2016-01-05 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 [ -n "${_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 clrhome mecho --info "Telegram Client Interface" echo /usr/bin/telegram-cli -W anykey exit 0