mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
98_telnet.pm: using original version of the patch (Forum #54205)
git-svn-id: https://svn.fhem.de/fhem/trunk@11606 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
846533e8fb
commit
991944b53f
@ -195,12 +195,12 @@ telnet_Read($)
|
||||
$chash->{canAsyncOutput} = 1;
|
||||
$chash->{encoding} = AttrVal($name, "encoding", "utf8");
|
||||
$chash->{prompt} = AttrVal($name, "prompt",
|
||||
AttrVal('global','title','fhem>'));
|
||||
AttrVal('global','title','fhem'));
|
||||
if($chash->{prompt} =~ m/^{.*}$/s) {
|
||||
$chash->{prompt} = eval $chash->{prompt};
|
||||
$chash->{prompt} =~ s/\n//;
|
||||
$chash->{prompt} .= '>'; # Not really nice, but dont know better.
|
||||
$chash->{prompt} = eval $chash->{prompt};
|
||||
$chash->{prompt} =~ s/\n//;
|
||||
}
|
||||
$chash->{prompt} .= '>'; # Not really nice, but dont know better.
|
||||
syswrite($chash->{CD}, sprintf("%c%c%c", 255, 253, 0) )
|
||||
if( AttrVal($name, "encoding", "") ); #DO BINARY
|
||||
$chash->{CD}->flush();
|
||||
|
Loading…
Reference in New Issue
Block a user