Skip to content

Commit

Permalink
close #220 (issue with remote session on ARM platforms)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniele77 committed Feb 2, 2024
1 parent ef7cacf commit 2921758
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions include/cli/detail/genericasioremotecli.h
Original file line number Diff line number Diff line change
Expand Up @@ -219,13 +219,13 @@ class TelnetSession : public Session

void OnDataReceived(const std::string& _data) override
{
for (auto c: _data)
for (char c: _data)
Consume(c);
}

private:

void Consume(signed char c)
void Consume(char c)
{
if (escape)
{
Expand All @@ -244,7 +244,7 @@ class TelnetSession : public Session
}
}

void Data(signed char c)
void Data(char c)
{
switch(state)
{
Expand Down Expand Up @@ -407,7 +407,7 @@ class TelnetSession : public Session
this -> OutStream() << answer << std::flush;
}
protected:
virtual void Output(signed char c)
virtual void Output(char c)
{
#ifdef CLI_TELNET_TRACE
std::cout << "data: " << static_cast<int>(c) << std::endl;
Expand Down Expand Up @@ -467,14 +467,14 @@ class CliTelnetSession : public InputDevice, public TelnetSession, public CliSes
Prompt();
}

void Output(signed char c) override // NB: C++ does not specify wether char is signed or unsigned
void Output(char c) override // NB: C++ does not specify wether char is signed or unsigned
{
switch(step)
{
case Step::_1:
switch( c )
{
case EOF:
case static_cast<char>(EOF):
case 4: // EOT
Notify(std::make_pair(KeyType::eof,' ')); break;
case 8: // Backspace
Expand Down

0 comments on commit 2921758

Please sign in to comment.