Glimmr Form Fields

version 1/101201 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - Standard input

    A keypress-to-string conversion rule when keystroke-code is standard input (this is the keypress of standard input rule):
        if len < maximum length of the current field:
            let field-input be the input-stream of the current field;
            if the cursor of the field-input is 0:
                now the text-string of the field-input is "[keystroke][text-string of field-input]";
            otherwise:
                let temp-buffer be character number (cursor of field-input) in the text-string of field-input;
                replace character number (cursor of field-input) in the text-string of field-input with "[temp-buffer][keystroke]";
            increase the cursor of the field-input by 1;
        otherwise:
            follow the field input error-handling rules for the current field.

    To decide if (keychar - a number) is standard input:
        if (keychar > 31 and keychar < 127) or (keychar > 127 and keychar < 177), decide yes;
        decide no.