home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Science / Science.zip / schem742.zip / doc / console.txt next >
Text File  |  1995-05-20  |  4KB  |  82 lines

  1. Documentation of Selected Procedures in the OS/2 Implementation:
  2.  
  3. (OS2-CONSOLE/COLOR?)
  4.     Returns #t if the console window supports color, #f otherwise.
  5.  
  6. (OS2/DEFINE-COLOR name color)
  7.     Define the string NAME to mean the color specified by COLOR.
  8.     COLOR can be specified in any of the following ways:
  9.  
  10.     * The name of a previously defined color (a string).
  11.  
  12.     * An exact integer between 0 and #xffffff inclusive.  The top
  13.       eight bits of the integer contain the red value, the middle
  14.       eight bits contain the green value, and the bottom eight
  15.       bits contain the blue value.
  16.  
  17.     * A list of three exact integers, each of which is between 0
  18.       and #xff inclusive.  The integers are red, green, and blue,
  19.       respectively.
  20.  
  21.     * A string whose first character is #\# and whose remaining
  22.       characters are the hexadecimal representation of an exact
  23.       integer between 0 and #xffffff inclusive.  The integer is
  24.       interpreted exactly as above.
  25.  
  26. (OS2/FIND-COLOR color)
  27.     Translate the color specification COLOR to an exact integer
  28.     between 0 and #xffffff inclusive.
  29.  
  30. (OS2-CONSOLE/SET-COLORS! foreground background)
  31.     Set the foreground and background colors of the console window,
  32.     and redraw the window using the new colors.  FOREGROUND and
  33.     BACKGROUND can be any color specification as defined above.
  34.  
  35. (call-with-values OS2-CONSOLE/GET-FONT-METRICS
  36.   (lambda (char-width char-height)
  37.     ...))
  38.     Get the width and height of the character cell for the console
  39.     window's current font.  These are returned as multiple values.
  40.  
  41. (OS2-CONSOLE/SET-FONT! font-name)
  42.     Change the console window's current font to FONT-NAME.  FONT-NAME
  43.     is a string of the form "<point-size>.<family-name>", for example,
  44.     "10.Courier".  Any fixed-pitch font may be specified; both image
  45.     fonts and outline fonts are supported.  This procedure signals an
  46.     error of type CONDITION-TYPE:BAD-RANGE-ERROR if FONT-NAME is not
  47.     valid.
  48.  
  49. (call-with-values OS2-CONSOLE/GET-SIZE (lambda (width height) ...))
  50.     Get the width and height of the console window, in characters.
  51.     These are returned as multiple values.
  52.  
  53. (OS2-CONSOLE/SET-SIZE! width height)
  54.     Set the size of the console window, in characters.
  55.  
  56. (call-with-values OS2-CONSOLE/GET-PEL-SIZE (lambda (width height) ...))
  57.     Get the width and height of the console window, in pels.  These
  58.     are returned as multiple values.  This is the size of the client
  59.     area of the window, and does not include the border and title bar.
  60.  
  61. (OS2-CONSOLE/SET-PEL-SIZE! width height)
  62.     Set the size of the console window, in pels.  This is the size of
  63.     the client area of the window, and does not include the border and
  64.     title bar.
  65.  
  66. (call-with-values OS2-CONSOLE/GET-FRAME-SIZE (lambda (width height) ...))
  67.     Get the width and height of the console window, in pels.  These
  68.     are returned as multiple values.  This is the size of the entire
  69.     frame, and DOES include the border and title bar.
  70.  
  71. (call-with-values OS2-CONSOLE/GET-FRAME-POSITION (lambda (x y) ...))
  72.     Get the position of the lower-left-hand corner of the console
  73.     window's frame.  This position is expressed in the usual OS/2
  74.     coordinates, relative to the lower-left-hand corner of the
  75.     desktop.  These are returned as multiple values.
  76.  
  77. (OS2-CONSOLE/SET-FRAME-POSITION! x y)
  78.     Set the position of the lower-left-hand corner of the console
  79.     window's frame.  This position is expressed in the usual OS/2
  80.     coordinates, relative to the lower-left-hand corner of the
  81.     desktop.
  82.