Solved

How to enter CTRL+ L from a script

Posted on 2011-09-13
4
788 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
  • 2
  • 2
4 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

830 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