Projekt

Allgemein

Profil

Qt » libfosh.diff

Maximilian Seesslen, 19.11.2024 19:36

Unterschiede anzeigen:

include/fosh/fosh.hpp
15 15
      CString command;
16 16
      CCommander m_commander;
17 17
      bool m_logedin;
18
      #if 1 //defined( LINUX ) && ! defined( STM32 )
19
      bool m_inputTerminal=true;
20
      #endif
18 21

  
19 22
public:
20 23
      CFosh();
src/fosh.cpp
37 37

  
38 38
    if(tcgetattr(0, &term_orig)) {
39 39
      printf("tcgetattr failed (%d)\n", errno);
40
      exit(-1);
40
      m_inputTerminal=false;
41
      return;
41 42
    }
42 43

  
43 44
    term = term_orig;
......
82 83
      firstLoop=false;
83 84
   }
84 85

  
86
   #if defined( LINUX ) && ! defined( STM32 )
87
   if( !m_inputTerminal )
88
   {
89
      return(0);
90
   }
91
   #endif
92

  
85 93
   do
86 94
   {
87 95
      // Returns EOF if no data is available (Linux, Biwak)
(2-2/6)