Ticket #1689 (closed deprecation: done)

Opened 12 years ago

Last modified 11 years ago

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:


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

Changed 12 years ago by coke


Changed 12 years ago by allison

+1 for consistency

Changed 12 years ago by NotFound

  • status changed from new to assigned
  • owner set to NotFound
  • component changed from none to core
  • type changed from RFC to deprecation
  • summary changed from is_tty or isatty? to Deprecate is_tty

Deprecation notice added in r47907

Changed 11 years ago by NotFound

  • status changed from assigned to closed
  • resolution set to done

Removed in r48949, closing ticket.

Note: See TracTickets for help on using tickets.