Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Termios in C++
Forum Updated to NodeBB v4.3 + New Features

Termios in C++

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 605 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Radsrad
    wrote on last edited by
    #1

    Hello all,
    i need a help how to use termios in qt C++ for interfacing with linux terminal for both read and write?

    JonBJ 1 Reply Last reply
    0
    • R Radsrad

      Hello all,
      i need a help how to use termios in qt C++ for interfacing with linux terminal for both read and write?

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @Radsrad
      Hello and welcome.

      Answer is you just use it like any other C library, it's straightforward.

      However, since this is a Qt forum and your question has nothing to do with Qt, you would be best asking on some other suitable forum. ("in qt C++": there is no such thing as "Qt C++", Qt is a library/toolkit, C++ is a language.)

      R 1 Reply Last reply
      0
      • JonBJ JonB

        @Radsrad
        Hello and welcome.

        Answer is you just use it like any other C library, it's straightforward.

        However, since this is a Qt forum and your question has nothing to do with Qt, you would be best asking on some other suitable forum. ("in qt C++": there is no such thing as "Qt C++", Qt is a library/toolkit, C++ is a language.)

        R Offline
        R Offline
        Radsrad
        wrote on last edited by
        #3

        @JonB Thanks for your reply but iam unable to write in linux terminal. And tried with Qprocess:: write, which is also not working .Somewhere came to know by using termios can be able to acheive but i am not getting as i am a beginner to QT . Can you please help ?

        jsulmJ JonBJ 2 Replies Last reply
        0
        • R Radsrad

          @JonB Thanks for your reply but iam unable to write in linux terminal. And tried with Qprocess:: write, which is also not working .Somewhere came to know by using termios can be able to acheive but i am not getting as i am a beginner to QT . Can you please help ?

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Radsrad What exactly did you try?
          What exactly did not work?
          How should anyone help if you do not provide enough information?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • R Radsrad

            @JonB Thanks for your reply but iam unable to write in linux terminal. And tried with Qprocess:: write, which is also not working .Somewhere came to know by using termios can be able to acheive but i am not getting as i am a beginner to QT . Can you please help ?

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by
            #5

            @Radsrad said in Termios in C++:

            Thanks for your reply but iam unable to write in linux terminal.

            Not a Qt issue.

            And tried with Qprocess:: write, which is also not working

            Absolutely nothing here/for termios which has anything to do with QProcess.

            Somewhere came to know by using termios can be able to acheive but i am not getting as i am a beginner to QT . Can you please help ?

            As I said, nothing to do with Qt. Hence forget completely about Qt, go write your termios code in C/C++ for a console. If you want help, you need either help on C/C++ or on termios, but not help for Qt.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved