[dylan-lang/opendylan] 480ab2: [coloring-stream] stream-supports-color? is open.

GitHub <[email protected]> Mon, 07 Dec 2015 04:51:21 -0800
Newsgroups gmane.comp.lang.dylan.gwydion.cvs
Message-ID <566580c970017_5be73f8ea7b552a022696a@hookshot-fe2-cp1-prd.iad.github.net.mail>
  Branch: refs/heads/master
  Home:   https://github.com/dylan-lang/opendylan
  Commit: 480ab2e296621ad132b82c6e75fecbe44c94ae44
      https://github.com/dylan-lang/opendylan/commit/480ab2e296621ad132b82c6e75fecbe44c94ae44
  Author: Bruce Mitchener <[email protected]>
  Date:   2015-12-07 (Mon, 07 Dec 2015)

  Changed paths:
    M documentation/library-reference/source/coloring-stream/index.rst
    M sources/lib/coloring-stream/coloring-stream.dylan
    M sources/lib/coloring-stream/tests/coloring-stream-test-suite.dylan

  Log Message:
  -----------
  [coloring-stream] stream-supports-color? is open.

This is part of making it easier for custom streams to support
colorization.

* sources/lib/coloring-stream/coloring-stream.dylan
  (stream-supports-color?): Add an explicit declaration of the generic
   function for this and mark it as open.

* sources/lib/coloring-stream/tests/coloring-stream-test-suite.dylan
  (module-spec coloring-stream): Correctly note that stream-supports-color?
   is an open generic function.

* documentation/library-reference/source/coloring-stream/index.rst
  (stream-supports-color?): Mark as open.


  Commit: 0050500048c150fb55001c7bf025e47886256185
      https://github.com/dylan-lang/opendylan/commit/0050500048c150fb55001c7bf025e47886256185
  Author: Bruce Mitchener <[email protected]>
  Date:   2015-12-07 (Mon, 07 Dec 2015)

  Changed paths:
    M documentation/library-reference/source/coloring-stream/index.rst
    M sources/lib/coloring-stream/coloring-stream.dylan
    M sources/lib/coloring-stream/library.dylan
    M sources/lib/coloring-stream/tests/coloring-stream-test-suite.dylan

  Log Message:
  -----------
  [coloring-stream] Add stream-supports-ansi-color?.

* sources/lib/coloring-stream/coloring-stream.dylan
  (coloring-stream-class-for-stream): Move some logic for determining
   whether or not ANSI color can be used to a new generic function.
  (stream-supports-ansi-color?): New generic function and method.

* sources/lib/coloring-stream/library.dylan
  (module coloring-stream): Export stream-supports-ansi-color?.

* documentation/library-reference/source/coloring-stream/index.rst
  (stream-supports-ansi-color?): Document.

* sources/lib/coloring-stream/tests/coloring-stream-test-suite.dylan
  (module-spec coloring-stream): Add stream-supports-ansi-color?.


Compare: https://github.com/dylan-lang/opendylan/compare/5c8e15a6b3f5...0050500048c1

_______________________________________________
chatter mailing list
[email protected]
https://lists.opendylan.org/mailman/listinfo/chatter