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. Terminal example don't show properly the data

Terminal example don't show properly the data

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 281 Views 2 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
    Rafa_Ramirez
    wrote on last edited by
    #1

    Hi everyone, I have a problem in the Terminal example. It doesnt show properly the data readed.
    In PuTTY, the data is shown correct but in the Terminal example no.
    I post some captures:

    PuTTY

    acb03426-f08e-4b8c-80e9-16e8a9a3567d-image.png

    Terminal Example:

    7d0e6bc4-e804-4605-b6c5-8814d1ebca8a-image.png

    And the configuration

    353f60d3-f1bd-4f05-a715-0e18fe3262e9-image.png

    Thanks for the help!

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Those number;numberH characters look like terminal control sequences. Qt's "Simple Example" is... simple. It probably does not understand them :-) You need a real terminal to properly parse them (there are Qt terminals, for example Konsole).

      The example code is likely also escaping formatting characters (tabulators) away - that part should be easy to fix in the examples code. Find the place and prevent it from escaping the output. It's hard to say how exactly without getting through the whole code first.

      (Z(:^

      1 Reply Last reply
      1
      • R Offline
        R Offline
        Rafa_Ramirez
        wrote on last edited by
        #3

        This is the printf of the code:

        a56ccd49-ed5b-4dfd-8c6c-46a42d152d0e-image.png

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Yeah, these are terminal control sequences. You need a real terminal to display them properly.

          (Z(:^

          1 Reply Last reply
          2

          • Login

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