Fix error_logger:tty/1 to turn on/off tty logging
Fix error_logger:tty/1 to turn on/off tty logging

This function earlier only added/removed the old error_logger_tty_h
report handler. Since it is mostly used for turning off logging to tty
in general, it now also checks the default logger handlers. It works
as follows:

tty(true):
* If default handler is logger_std_h of type standard_io, make sure it
  has no 'error_logger_tty_false filter'.
* Else, add a new instance of logger_std_h with type standard_io with
  id 'error_logger_tty_true'.

tty(false):
* Remove error_logger_tty_h report handler if it exists.
* Remove error_logger_tty_false logger handler if it exists.
* If default handler is logger_std_h of type standard_io, add a filter
  named 'error_logger_tty_false', which stops all events.

getong/otp,aboroska/otp,emacsmirror/erlang,kvakvs/otp,rlipscombe/otp,legoscia/otp,fenollp/otp,RaimoNiskanen/otp,getong/otp,electricimp/otp,vladdu/otp,lrascao/otp,mikpe/otp,RoadRunnr/otp,getong/otp,aboroska/otp,isvilen/otp,isvilen/otp,legoscia/otp,vinoski/otp,rlipscombe/otp,RaimoNiskanen/otp,isvilen/otp,emacsmirror/erlang,dgud/otp,mikpe/otp,bjorng/otp,tuncer/otp,kvakvs/otp,erlang/otp,g-andrade/otp,saleyn/otp,aboroska/otp,electricimp/otp,dumbbell/otp,potatosalad/otp,dumbbell/otp,saleyn/otp,potatosalad/otp,RoadRunnr/otp,electricimp/otp,isvilen/otp,RoadRunnr/otp,potatosalad/otp,emacsmirror/erlang,dgud/otp,electricimp/otp,lrascao/otp,potatosalad/otp,vinoski/otp,uabboli/otp,legoscia/otp,bjorng/otp,RoadRunnr/otp,isvilen/otp,emacsmirror/erlang,aboroska/otp,getong/otp,uabboli/otp,getong/otp,potatosalad/otp,jj1bdx/otp,tuncer/otp,bjorng/otp,vladdu/otp,jj1bdx/otp,emacsmirror/erlang,dumbbell/otp,RaimoNiskanen/otp,g-andrade/otp,rlipscombe/otp,potatosalad/otp,fenollp/otp,bjorng/otp,kvakvs/otp,g-andrade/otp,kvakvs/otp,RoadRunnr/otp,lrascao/otp,RoadRunnr/otp,ferd/otp,isvilen/otp,aboroska/otp,ferd/otp,mikpe/otp,jj1bdx/otp,getong/otp,dgud/otp,ferd/otp,kvakvs/otp,vladdu/otp,tuncer/otp,g-andrade/otp,lrascao/otp,rlipscombe/otp,getong/otp,dumbbell/otp,g-andrade/otp,rlipscombe/otp,g-andrade/otp,rlipscombe/otp,g-andrade/otp,dgud/otp,bsmr-erlang/otp,cobusc/otp,bsmr-erlang/otp,saleyn/otp,vinoski/otp,kvakvs/otp,dgud/otp,isvilen/otp,ferd/otp,ferd/otp,bsmr-erlang/otp,mikpe/otp,electricimp/otp,legoscia/otp,aboroska/otp,potatosalad/otp,uabboli/otp,erlang/otp,cobusc/otp,mikpe/otp,RoadRunnr/otp,cobusc/otp,aboroska/otp,jj1bdx/otp,saleyn/otp,cobusc/otp,dumbbell/otp,tuncer/otp,legoscia/otp,g-andrade/otp,vinoski/otp,tuncer/otp,legoscia/otp,jj1bdx/otp,RaimoNiskanen/otp,RaimoNiskanen/otp,vladdu/otp,mikpe/otp,dumbbell/otp,vladdu/otp,bsmr-erlang/otp,mikpe/otp,vinoski/otp,bsmr-erlang/otp,mikpe/otp,saleyn/otp,kvakvs/otp,legoscia/otp,bsmr-erlang/otp,fenollp/otp,uabboli/otp,RaimoNiskanen/otp,jj1bdx/otp,dumbbell/otp,jj1bdx/otp,legoscia/otp,uabboli/otp,electricimp/otp,isvilen/otp,cobusc/otp,rlipscombe/otp,cobusc/otp,saleyn/otp,emacsmirror/erlang,lrascao/otp,bsmr-erlang/otp,fenollp/otp,vladdu/otp,getong/otp,dumbbell/otp,saleyn/otp,electricimp/otp,erlang/otp,jj1bdx/otp,g-andrade/otp,erlang/otp,kvakvs/otp,potatosalad/otp,fenollp/otp,emacsmirror/erlang,cobusc/otp,potatosalad/otp,dgud/otp,electricimp/otp,isvilen/otp,isvilen/otp,mikpe/otp,bsmr-erlang/otp,aboroska/otp,g-andrade/otp,lrascao/otp,bjorng/otp,saleyn/otp,RaimoNiskanen/otp,bjorng/otp,uabboli/otp,ferd/otp,tuncer/otp,erlang/otp,lrascao/otp,tuncer/otp,rlipscombe/otp,ferd/otp,bjorng/otp,fenollp/otp,erlang/otp,vinoski/otp,RaimoNiskanen/otp,dgud/otp,emacsmirror/erlang,vinoski/otp,bjorng/otp,vinoski/otp,fenollp/otp,dgud/otp,RoadRunnr/otp,vladdu/otp,electricimp/otp,lrascao/otp,getong/otp,dgud/otp,vinoski/otp,rlipscombe/otp,tuncer/otp,jj1bdx/otp,emacsmirror/erlang,getong/otp,cobusc/otp,legoscia/otp,vinoski/otp,kvakvs/otp,fenollp/otp,vladdu/otp,bjorng/otp,dumbbell/otp,fenollp/otp,uabboli/otp,ferd/otp,ferd/otp,RaimoNiskanen/otp,dgud/otp,rlipscombe/otp,saleyn/otp,potatosalad/otp,RoadRunnr/otp,bsmr-erlang/otp,mikpe/otp,uabboli/otp,aboroska/otp,dumbbell/otp,emacsmirror/erlang,tuncer/otp,erlang/otp,erlang/otp,uabboli/otp,erlang/otp,bjorng/otp,erlang/otp,vladdu/otp,lrascao/otp,jj1bdx/otp