Issue: Could not open terminal for stdout: could not get termcap entry


I installed the gradle 4.7 my sabayon linux and I do step by step completed installing.But I can’t run the gradle.I type in terminal gradle -v command.I got the following error.

FAILURE: Build failed with an exception.

What went wrong:
Could not open terminal for stdout: could not get termcap entry
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Please help me.

Try --console=plain

Thanks
Now it’s working I export this command

export TERM=xterm-color