var input = func(v) { setprop("/instrumentation/cdu/input",getprop("/instrumentation/cdu/input")~v); } var delete = func { var length = size(getprop("/instrumentation/cdu/input")) - 1; setprop("/instrumentation/cdu/input",substr(getprop("/instrumentation/cdu/input"),0,length)); } var i = 0; var plusminus = func { var end = size(getprop("/instrumentation/cdu/input")); var start = end - 1; var lastchar = substr(getprop("/instrumentation/cdu/input"),start,end); if (lastchar == "+"){ me.delete(); me.input('-'); } if (lastchar == "-"){ me.delete(); me.input('+'); } if ((lastchar != "-") and (lastchar != "+")){ me.input('+'); } } var cdu = func{ var display = getprop("/instrumentation/cdu/display"); var serviceable = getprop("/instrumentation/cdu/serviceable"); title = ""; page = ""; line1l = ""; line2l = ""; line3l = ""; line4l = ""; line5l = ""; line6l = ""; line1lt = ""; line2lt = ""; line3lt = ""; line4lt = ""; line5lt = ""; line6lt = ""; line1c = ""; line2c = ""; line3c = ""; line4c = ""; line5c = ""; line6c = ""; line1ct = ""; line2ct = ""; line3ct = ""; line4ct = ""; line5ct = ""; line6ct = ""; line1r = ""; line2r = ""; line3r = ""; line4r = ""; line5r = ""; line6r = ""; line1rt = ""; line2rt = ""; line3rt = ""; line4rt = ""; line5rt = ""; line6rt = ""; if (display == "MENU") { title = "MENU"; line1l = "