Solved

How to enter CTRL+ L from a script

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

773 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