Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Beacon EmbeddedWorks support staff and engineers participate, Beacon EmbeddedWorks does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Beacon EmbeddedWorks engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Beacon EmbeddedWorks product download, please subscribe to the TDG Forum of interest.

TDG Forum

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 21 May 2014 08:49 AM by  jduran.gm
Display escape sequences in draw-test
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages
jduran.gm
New Member
New Member
Posts:79


--
21 May 2014 06:35 AM

    Hello,

    In the 'draw-test' program, there are two sequences to configure the behavior of tty0 terminal:

    fputs("\033[?25l", f);  --> Hide cursor
    fputs("\033[9]", f); --> ??

    The first sequence indicates that the cursor should be hidden, but which is the purpose of the second sequence?

    Thanks and Best Regards,

    Joaquim Duran

    bradb
    Basic Member
    Basic Member
    Posts:203


    --
    21 May 2014 08:21 AM
    The command below causes the display to blank after 1 minute.  

    DM-37x# echo -e '\033[9;1]' > /dev/tty0

    The following command below is equivalent to "fputs("\033[9]", f);".  Both cancels console screen blanking.

    DM-37x# echo -e '\033[9]' > /dev/tty0

    More information on Linux console and control sequences can be found here.

    jduran.gm
    New Member
    New Member
    Posts:79


    --
    21 May 2014 08:49 AM
    To send commands to terminal, I would prefer to use 'echo -ne' (maybe an '\n' char could have undesired consequences).

    If the linux kernel option 'Device drivers/Character devices/Virtual terminal' is disabled, then previous terminal commands are not needed to display graphics.
    You are not authorized to post a reply.