Sapd / HeadsetControl

Sidetone and Battery status for Logitech G930, G533, G633, G933 SteelSeries Arctis 7/PRO 2019 and Corsair VOID (Pro) in Linux and MacOSX

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Should \n be added to short output?

Odizinne opened this issue · comments

Description

Hello, not sure if this is wanted or not but:

flora@pop-os:~$ headsetcontrol -b -c
-2flora@pop-os:~$ 

This is what i get when shortening output.
Is this something intended?

I would expect something like this:

flora@pop-os:~$ headsetcontrol -b -c
-2
flora@pop-os:~$ 

On which OS does the problem happen?

Linux

It probably was done this way to make it easier to directly parse. But I agree with you, normally a Linux command should always end with \n.

However, I wouldn't change it due to backwards compatibility. Also because -c will be probably deprecated in the future in favour of #271 (Feel free to participate in the discussion)

Closed because short output is now deprecated in favour of JSON/YAML output