Text Window Input-Output Control

version 2 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - Cancelling input before printing to the input line

    [First, we eliminate the standard rule that cancels input in the main window when a mouse click generates a command. We need to make this happen in the current text input window, so we provide the flexible cancelling input rule.]

    The cancelling input in the main window rule is not listed in any rulebook.

    An input-cancelling rule (this is the flexible calling input rule):
        cancel line input in the current text input window;
        cancel character input in the current text input window.
            
    To cancel line input in (win - a g-window):
        (- glk_cancel_line_event({win}.ref_number, GLK_NULL); -)
        
    To cancel character input in (win - a g-window):
        (- glk_cancel_char_event({win}.ref_number); -)