Ticket #1689 (closed deprecation: done)
Deprecate is_tty
Reported by: | NotFound | Owned by: | NotFound |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | core | Version: | 2.5.0 |
Severity: | medium | Keywords: | |
Cc: | Language: | ||
Patch status: | Platform: |
Description
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.
Change History
Note: See
TracTickets for help on using
tickets.