#1689: is_tty or isatty?
----------------------+-----------------------------------------------------
Reporter: NotFound | Owner:
Type: RFC | Status: new
Priority: normal | Milestone:
Component: none | Version: 2.5.0
Severity: medium | Keywords:
Lang: | Patch:
Platform: |
----------------------+-----------------------------------------------------
docs/book/pir/ch08_io.pod describe the isatty method of FileHandle and
FileHandle implements it. StringHandle and GzipHandle, however have a
method called is_tty that return 0. This isn't a very useful combination.
In r47784 I implemented isatty in Handle, returning 0. That way isatty can
be used with an arbitrary Handle without knowledge of is exact type.
This leaves an unuseful is_tty method. I propose to deprecate it
immediately.
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1689>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets