Avoid potential infinite loop when reading size.
Add the `console:termcap` command.

Examples:

    $ hoa console:terminfo --has back_color_erase
    1

    $ TERM=vt200 hoa console:terminfo --has back_color_erase
    0

    $ hoa console:terminfo --count max_colors
    256

    $ hoa console:terminfo --get bell
    // bip!