Sponsored Content
Top Forums Shell Programming and Scripting Clear Screen Command for BASH shell Post 302388879 by Corona688 on Thursday 21st of January 2010 05:51:39 PM
Old 01-21-2010
You cannot alias keystrokes to commands or vice versa. You could just alias cls to an echo command: echo -en "\x0c"
 

10 More Discussions You Might Find Interesting

1. Programming

How to clear screen

I searched the post and someone said to clear the screen in C, use printf("\033[2J"); ?? However, this doesn't work...typo or no. What is an equivalent command to 'CLS' in DOS/'clear' in UNIX to clear the screen and go to top of screen?? Thank you. (2 Replies)
Discussion started by: giannicello
2 Replies

2. Programming

clear screen

what is the syntax for clearing the screen in c ? when i tried "Clrscr()" the CC complier does not reconise it. please do tell me more about this. thanking you imma (6 Replies)
Discussion started by: immanuelgangte
6 Replies

3. Programming

clear screen in g++

How do I clear screen in g++ I've included curses and tried compile with lcurses as per gcc but fails, I can clear by using system("clear") but would prefer to use the curses library if possible. (2 Replies)
Discussion started by: gefa
2 Replies

4. Shell Programming and Scripting

Clear screen in NAWK

Hello guys, I wonder if it is possible to clear out the screen in AWK. I'm printing out mail messages and I would like every message starting on the beginning of the screen. When I use FOR loop and printf("\n") it clears out the screen but my text is somewhere in the middle of the screen. ... (2 Replies)
Discussion started by: petoSVK
2 Replies

5. Programming

how to clear screen in GDB session

hi , Could any one tell me the command for clearing the screen in GDB session (1 Reply)
Discussion started by: useless79
1 Replies

6. Red Hat

command line tool to disable screen lock and/or screen saver

Hi, I have a simple question : how to disable screen lock and/or sreen saver with command line with RHEL5.4 ? (1 Reply)
Discussion started by: albator1932
1 Replies

7. Shell Programming and Scripting

Clear specific part of the screen

I want to clear specific part of the screen. Say for example , i am running a bash script for i in {1..100} do echo "Current Record = $i" done if i use a clear command over there , it will clear my screen however when i scroll up i would have the old records , is there anyway in unix to... (5 Replies)
Discussion started by: chidori
5 Replies

8. Shell Programming and Scripting

CLEAR THESE Doubts Please ( bash scripts )

gnu.txt-----example file name 1. Display the 15th line of gnu.txt. 2. Display all lines of gnu.txt where the first and third fields are the same. 3. Display all lines of gnu.txt that have more than 100 fields. 4. Display the total number of lines in gnu.txt. 5. Display all lines in... (1 Reply)
Discussion started by: venkatesh B
1 Replies

9. UNIX for Dummies Questions & Answers

Which of the following command displays your login shell in bash shell?

Options:: A)$shell B)echo $ bash C)echo $ O D)$ O (1 Reply)
Discussion started by: raghugowda
1 Replies

10. UNIX for Beginners Questions & Answers

Help with bash escaping while using screen command

Hello, everyone. I'm currently trying to write a command system for a Minecraft server using screen. Here are the scripts I'm currently using. 0.sh #!/bin/bash screen -S Test114 -dm java -Xmx4G -jar server.jar nogui 1.sh #!/bin/bash args="$@" args2="${args@Q}" #args3=`printf '%q\n'... (2 Replies)
Discussion started by: Develon
2 Replies
XltAppInitialize(3X)													      XltAppInitialize(3X)

NAME
XltAppInitialize - Replacement for XtAppInitialize which uses an XltAppShell instead of an Xt ApplicationShell. SYNOPSIS
#include <Xlt/AppShell.h> Widget XltAppInitialize(ac, cls, opts, num_opts, argc, argv, fallbacks, a, n) XtAppContext *ac; String cls; XmrOptionDescList opts; Cardinal num_opts; int *argc; char **argv; char *fallbacks; ArgList a; Cardinal n; DESCRIPTION
XltAppInitialize is a drop-in replacement for XtAppInitialize(3X) which uses an Xlt AppShell widget instead of an Xt ApplicationShell wid- get. The type of shell created is the only difference between this function and XtAppInitialize(3X). Applications which use X11R6 should use XtOpenApplication(3X) which allows you to specify the type of shell widget to create. RETURN VALUE
The AppShell widget. SEE ALSO
XtAppInitialize(3X), XtVaAppInitialize(3X), XtOpenApplication(3X), XtVaOpenApplication(3X). XltAppInitialize(3X)
All times are GMT -4. The time now is 08:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy