mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
98_telnet.pm: fix asyncOutput fr !showPrompt (Forum #53315)
git-svn-id: https://svn.fhem.de/fhem/trunk@11603 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
85402e1511
commit
a103e6da3a
@ -305,7 +305,10 @@ telnet_Output($$$)
|
||||
|
||||
if($ret) {
|
||||
$ret = utf8ToLatin1($ret) if( $hash->{encoding} eq "latin1" );
|
||||
$ret = "\n$ret\n$hash->{prompt} " if(!$nonl); # AsyncOutput stuff
|
||||
if(!$nonl) { # AsyncOutput stuff
|
||||
$ret = "\n$ret\n$hash->{prompt} " if( $hash->{showPrompt});
|
||||
$ret = "$ret\n" if(!$hash->{showPrompt});
|
||||
}
|
||||
for(;;) {
|
||||
my $l = syswrite($hash->{CD}, $ret);
|
||||
last if(!$l || $l == length($ret));
|
||||
|
Loading…
Reference in New Issue
Block a user