Text Window Input-Output Control

version 2 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - Pasting commands to the input window
    [Here we provide a new command-pasting rule that targets our current text input window. We also provide some control over the state of paragraphing across the sometimes troublesome switch between windows. This control comes via the "command-pasting terminator" a global text variable that we can set to whatever we need to make things look good. By default, there is no terminator (the value is ""). If we are clearing the input window after each input, however, we will want to set the command-pasting terminator equal to "[run paragraph on]", or we will get an extra line break in the output window after each pasted command.]

    The print text to the input prompt rule is not listed in any rulebook.

    The command-pasting terminator is a text variable.

    A command-showing rule (this is the print text to the input window rule):
        set focus to the current text input window;
        [say input-style-for-glulx;
        say Glulx replacement command;
        say roman type;]
        say "[input-style-for-glulx][Glulx replacement command][roman type][command-pasting terminator]";
        set focus to current text output window.