Skip to content

'tput' is not recognized as an internal or external command, operable program or batch file #5

@kAlvaro

Description

@kAlvaro

On Windows (either CMD or PowerShell) you get extraneous output:

'tput' is not recognized as an internal or external command, operable program or batch file

PowerShell

It comes from \splitbrain\phpcli\TableFormatter::__construct():

$width = @exec('tput cols'); 

When the tput command is not available the shell prints an error message on stderr and it's apparently transmitted to the shell where you run the PHP script. (Apparently bash is also subject to this but it isn't an issue because ncurses is normally installed.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions