function _cursorBaseUpdate()
{
    if (_clockBaseTrigger(__FUNCTION__)) {
        $cbg = _configBaseGet("cursorbackground") + 1;
        if ($cbg == 8) {
            $cbg = 1;
        }
        if (_configBaseGet("appmode") == "edit") {
            if ($cbg > 1) {
                $cbg = 0;
            }
            if ($cbg == 1) {
                system("tput smso");
            } else {
                system("tput rmso");
            }
        }
        if (_configBaseGet("appmode") == "command") {
            //if( $cbg > 1 ) $cbg = 0 ;
            //system("tput smso");
            system("tput setab {$cbg}");
        }
        _screenHandleShowGridChar();
        _configBaseSet("cursorbackground", $cbg);
    }
}
Example #2
0
function _appBaseSave()
{
    if (_clockBaseTrigger(__FUNCTION__)) {
        if (_configBaseGet("gridmodifytime") == -1) {
            return;
        }
        if (_configBaseGet("apptime") - _configBaseGet("gridmodifytime") > 3) {
            _logBaseWrite(__FUNCTION__);
            _configBaseSet("gridmodifytime", -1);
            _appBaseSaveSession();
        }
    }
}
function _screenBaseUpdate()
{
    if (_clockBaseTrigger(__FUNCTION__)) {
        _screenBaseViewUpdate();
    }
}