Text Window Input-Output Control

version 2 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Section: Miscellaneous notes

    One interesting consequence of the ability to set the main text output window is that we can now select text-grid windows as the main output or input windows. Doing so carries with it all the limitations of text-grid windows--most notably, the absence of scrolling and the inability to display images--but might be useful for certain effects (see the "Terminal" example below).

    Note that the character input routines from Basic Screen Effects ("wait for any key", "wait for the SPACE key", "the chosen letter") will now apply to whichever window is declared as the current text input window. To specify which window we want to accept character input, we can use the phrases defined in Flexible Windows (version 9+).

    The current text output window also determines where figures are printed when we use the Inform library's "display the figure of ..." command. If the current text output window is not a text-buffer window, figures will not be displayed.

    Similarly, the I6 routines VM_ClearScreen window(), VM_ScreenWidth(), and VM_ScreenHeight() will now operate on the current text output window rather than exclusively on the main window.