function _modeEditHandle() { if (_keyboardBaseInputIsPrintable()) { system("tput rmso"); system("tput setab 0"); $byte = _keyboardBasePullInput(); print chr($byte); //_gridBaseSetCharFromKeyboard( ) ; _gridBaseSetByte($byte); _cursorBaseRightNoPrint(); return; } if (_keyboardBaseIsEnterKey()) { system("tput rmso"); _cursorBaseEnter(); return; } if (_keyboardBaseIsBackspaceKey()) { system("tput rmso"); system("tput setab 0"); _cursorBaseLeft(); _gridBaseSetChar(" "); return; } }
function _keyboardBaseHandleLoad() { // if( _appBaseGetMode( ) == "edit" ) return( false ) ; $byte = _keyboardBasePullInput(); if (chr($byte) == 'p') { if (!_configBaseQuery("loaded")) { $t = _cursorBaseGridLine(); if ($t != "") { $ph = hash('sha256', "~_1ZAF_2WOZ_3ERE_+" . $t); _configBaseQuery("loadedHash", $ph); _configBaseQuery("loaded", true); _appBaseLoadSession(); _logBaseWrite("LOADED!!"); } } return true; } _keyboardBasePushInput($byte); return false; }