Handle binary input in console helpers

The standard_input may be set to binary mode via io:getopts/2
and in case such cases the "i/0" console helper got stuck as
it was unable to match new lines in binaries.
Add support for the separate tinfo library from ncurses

Recent versions of ncurses can be built with terminfo symbols
moved into the separate tinfo library.
This patch prevents erts configure from dying by adding the tinfo
library to list of termcap lib candidates.
Adapted reltool test server to common test usage of tc_status
Add missing default value for regexps in reltool
It caused a function clause in lists:sort/1:

  reltool_server_SUITE.erl(2512): <ERROR>
  Not matching actual result was:
   {error,
       {function_clause,
           [{lists,sort,
                [[{regexp,"^priv",
                      {re_pattern,0,1,
                          <<69,82,67,80,64,0,0,0,16,8,0,0,0,0,0,0,0,0,0,0,0,
                            0,0,0,48,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
                            0,0,0,93,0,12,25,27,112,27,114,27,105,27,118,84,
                            0,12,0>>}}|
                  undefined]],
                [{file,"lists.erl"},{line,465}]},
            {reltool_server,decode,2,[{file,"reltool_server.erl"},{line,1499}]},
            {reltool_server,decode,2,[{file,"reltool_server.erl"},{line,1363}]},
            {reltool_server,read_config,2,
                [{file,"reltool_server.erl"},{line,1335}]},
            {reltool_server,parse_options,4,
                [{file,"reltool_server.erl"},{line,224}]},
            {reltool_server,do_init,1,[{file,"reltool_server.erl"},{line,154}]},
            {reltool_server,init,1,[{file,"reltool_server.erl"},{line,133}]},
            {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}}
  Expected { ok , _ }
ssl: Add missing options validation of server_name_indication
ssl: Prepare for release
ssl: fix elliptic curve selection in server mode

The server code erroneously took the list of curves supported by the
client from it's own hello extension, effectively breaking curve
selection all together.

Also the default fallback secp256k1 curve is not supported by
all clients. secp256r1 is recommended as part of the NIST Suite B
cryptographic suites. The chances are much better that all clients
support it, so use that as fallback.
ssl: Prepare for release
Merge branch 'josevalim/jv-console-i'

* josevalim/jv-console-i:
  Handle binary input in console helpers

OTP-11589
Merge branch 'djc/tinfo-ncurses'

* djc/tinfo-ncurses:
  Add support for the separate tinfo library from ncurses

OTP-11590
Merge branch 'hawk/reltool_test_server'

* hawk/reltool_test_server:
  Adapted reltool test server to common test usage of tc_status
Merge branch 'hawk/reltool_undefined_regexp'

* hawk/reltool_undefined_regexp:
  Add missing default value for regexps in reltool It caused a function clause in lists:sort/1:

OTP-11591
OTP-11592
Merge branch 'ia/ssl/server-name-indication-missing-option-validation/OTP-11567' into maint

* ia/ssl/server-name-indication-missing-option-validation/OTP-11567:
  ssl: Prepare for release
  ssl: Add missing options validation of server_name_indication
Merge branch 'ia/ssl/ECC-curve-selection/OTP-11575' into maint

* ia/ssl/ECC-curve-selection/OTP-11575:
  ssl: Prepare for release
  ssl: fix elliptic curve selection in server mode
Merge remote-tracking branch 'upstream/maint'