RoonCommandLine fails in a minimal terminal

I am using RoonCommandLine to control Roon.

It works great when I issue the roon command in a full-fledged terminal. However when I issue the command through, say, a script which is not attched to a terminal the roon command complains with

tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified

to stderr. @Ronald_Record I guess the reason is that the roon command calls tput without checking the return codes.

I found an easy fix: In the file bin/roon replace the lines 199-200 with

BOLD=$(tput bold 2>/dev/null)
NORMAL=$(tput sgr0 2>/dev/null)

This change disregards the stderr output and it works, because tput returns nothing when it fails with this error, so the variables $BOLD and $NORMAL are just empty strings.

2 Likes

Good catch and thanks for the easy fix. I will roll this into the next release.