Solved

How to enter CTRL+ L from a script

Posted on 2011-09-13
4
784 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now