FHEM Forum

FHEM => English Corner => Thema gestartet von: gevard am 29 Dezember 2018, 21:23:15

Titel: fhem and nano (text editor) issue
Beitrag von: gevard am 29 Dezember 2018, 21:23:15
Hello everyone

Just wanted to inform you that there is an issue with the use of nano as a text editor.
Some ZWAVE attributes in the fhem.cfg file are too long to be handled by that text editor.
The line are truncated and the last parameter are lost and replaced by a "$" symbol.

This is really annoying, and I think fhem should split the line that contain too much caracters.
Hope it help.

Titel: Antw:fhem and nano (text editor) issue
Beitrag von: rudolfkoenig am 29 Dezember 2018, 21:40:33
If you know what you are doing (i.e. editing fhem.cfg), then you should use an editor, which deserves its name, nano obviously doesnt.
For everybody else please do not edit fhem.cfg directly, but only through FHEMWEB or the telnet interface.
Titel: Antw:fhem and nano (text editor) issue
Beitrag von: SlrG am 30 Januar 2019, 14:16:37
AFAIK nano doesn't wrap long lines by default if they exeed the visible area. But it doesn't truncate them either. You just have to scroll right and you will get to see the rest of the line and your missing parameters.

While @rudolfkoenig is absolutely right in his recommendation to use FHEMWEB to edit the fhem.cfg, nano IMHO is a capable text editor and not responsible for this "issue".