OpenQNX :: The QNX Community Portal

May 13, 2008 - 09:51 AM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 55 unlogged users and 0 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
grillosolitario
Post subject: Clear screen on startup script  PostPosted: Apr 14, 2008 - 11:09 AM
Active Member


Joined: Oct 18, 2004
Posts: 83
Location: Spain
Hello,

Is there any way to clear the screen in the startup script? I mean something like:

display_msg system is on
sleep 5
clear_screen


Thanks,

Grillo Solitario
 
 View user's profile Send private message  
Reply with quote Back to top
ysinitsky
Post subject: RE: Clear screen on startup script  PostPosted: Apr 14, 2008 - 01:59 PM
Active Member


Joined: Dec 14, 2005
Posts: 34

Hello Grillo,
That is not an elegant solution, but a number of

display_msg “”

will clear the screen.
Thanks,
Yuriy
 
 View user's profile Send private message  
Reply with quote Back to top
Tim
Post subject:   PostPosted: Apr 14, 2008 - 02:08 PM
Senior Member


Joined: Mar 10, 2004
Posts: 512

A CTRL-L command in a terminal window will clear the screen.

So you might be able to find a way to use display_msg to send a CTRL-L.

The other option is writing a 1 line C program that just does a printf of a CTRL-L and then put your executable in the boot image and call it to clear the screen.

Tim
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
GordSipko
Post subject:   PostPosted: Apr 14, 2008 - 10:40 PM
New Member


Joined: May 13, 2004
Posts: 7

The echo command can be used to send the CTRL-L to the screen. Put echo "\14" or echo "\f" into it's own file, make the file executable and you will have a clear screen command!

Gord
 
 View user's profile Send private message  
Reply with quote Back to top
qnxloader
Post subject:   PostPosted: Apr 15, 2008 - 04:54 AM
Senior Member


Joined: Oct 06, 2003
Posts: 147

Simply type "clear".
 
 View user's profile Send private message  
Reply with quote Back to top
grillosolitario
Post subject:   PostPosted: Apr 16, 2008 - 08:12 AM
Active Member


Joined: Oct 18, 2004
Posts: 83
Location: Spain
Hello,

I've tried the two last methods, but they don't work. I must say I run a photon application when starting the system. This application has an exit button that runs the shutdown command. When QNX finishes the shutdown process, the screen has all the booting messages, and that's what I want to remove.

I suppose yuriy's method may work, but it would fill the buildfile of "display_msg", and I would like a smarter solution.

Thank you all.
 
 View user's profile Send private message  
Reply with quote Back to top
Tim
Post subject:   PostPosted: Apr 16, 2008 - 02:18 PM
Senior Member


Joined: Mar 10, 2004
Posts: 512

Ah, those messages are not part of any shell but are instead written directly to the screen. So the clear and CTRL-L methods won't work.

I think you'll have to use Yuri's method.

The only other thing you can do is to start the console driver as part of your boot process. That will grab the screen and clear it but then you will see a login prompt when photon shuts down (not sure if that's OK).

Tm
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.