?
Solved

How to enter CTRL+ L from a script

Posted on 2011-09-13
4
Medium Priority
?
792 Views
Last Modified: 2012-05-12
Hi there,

I want to enter "control key and L" from a script.  How can I do it?  Or have an alias for pressing "control + L".
CTRL+ L is clear screen in QNX.
0
Comment
Question by:ambuli
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 2000 total points
ID: 36530271
Don't you have "tput"?

Try

tput clear

Most Unixes have the "clear" command too. Simply:

clear

If you must use Ctrl-L  then you can do in vi:

Ctrl-V CTRL-L

wmp
0
 

Author Comment

by:ambuli
ID: 36530367
Thanks,
This is a strip down version of QNX and does not have many commands.

I want to do something like
alias clear = ????
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 36530481
Maybe this:

alias clear=`echo "\014"`

Please note the  backticks  `  `  !

Is there really no "tput"?


0
 

Author Closing Comment

by:ambuli
ID: 36530497
Thank you. Ctrl-V CTRL-L  worked.
0

Featured Post

Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses
Course of the Month13 days, 17 hours left to enroll

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question