04-22-2006
did you try to use clrscr ?
call it with
clrscr();
it should work everywhere ...
10 More Discussions You Might Find Interesting
1. Programming
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
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. Shell Programming and Scripting
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
4. Programming
hi ,
Could any one tell me the command for clearing the screen in GDB session (1 Reply)
Discussion started by: useless79
1 Replies
5. UNIX for Dummies Questions & Answers
Hi...
i have one doubt pls...
1)can we clear the command line history in UNIX for a paricular login(scadm/root)if so how?.
2) can we see the time at which command executed.
history is showing like :
100 display
101 lock
102 exit (7 Replies)
Discussion started by: gincemathew
7 Replies
6. OS X (Apple)
Hi,
I'm trying to create a virtual screen, (maybe xvfb? or any other virtual screen buffer) and be able to use Screen Sharing to connect to it.
The setup is that I have a Mac Mini connected to the TV. But when my girlfriend is using Front Row, I can't use Screen Sharing at the same time from... (0 Replies)
Discussion started by: linge
0 Replies
7. Shell Programming and Scripting
I am unable to use clear or cls command on bash shell. I have recently installed Cygwin and am using that for practicing unix commands.
I see that I can use Ctrl + L to clear the screen. I created an alias in my .bashrc to do the same as
alias cls='^L'
This is how i defined other aliases ... (4 Replies)
Discussion started by: erora
4 Replies
8. Red Hat
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
9. UNIX for Dummies Questions & Answers
I made a screen within a screen.
Is there a way to move the inner screen up one level so that it is at the same level as the first screen running from the shell? (2 Replies)
Discussion started by: phpchick
2 Replies
10. Shell Programming and Scripting
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
LEARN ABOUT HPUX
xmscrolledwindowsetareas
XmScrolledWindowSetAreas(library call) XmScrolledWindowSetAreas(library call)
NAME
XmScrolledWindowSetAreas -- A ScrolledWindow function that adds or changes a window work region and a horizontal or vertical ScrollBar wid-
get to the ScrolledWindow widget
SYNOPSIS
#include <Xm/ScrolledW.h>
void XmScrolledWindowSetAreas(
Widget widget,
Widget horizontal_scrollbar,
Widget vertical_scrollbar,
Widget work_region);
DESCRIPTION
XmScrolledWindowSetAreas adds or changes a window work region and a horizontal or vertical ScrollBar widget to the ScrolledWindow widget
for the application. Each widget is optional and may be passed as NULL. This function is obsolete and exists for compatibility with other
releases. Use the XmNscrolledWindowChildType resource of XmScrolledWindow instead.
widget Specifies the ScrolledWindow widget ID.
horizontal_scrollbar
Specifies the ScrollBar widget ID for the horizontal ScrollBar to be associated with the ScrolledWindow widget. Set this ID only
after creating an instance of the ScrolledWindow widget. The resource name associated with this argument is XmNhorizontalScroll-
Bar.
vertical_scrollbar
Specifies the ScrollBar widget ID for the vertical ScrollBar to be associated with the ScrolledWindow widget. Set this ID only
after creating an instance of the ScrolledWindow widget. The resource name associated with this argument is XmNverticalScrollBar.
work_region
Specifies the widget ID for the work window to be associated with the ScrolledWindow widget. Set this ID only after creating an
instance of the ScrolledWindow widget. The attribute name associated with this argument is XmNworkWindow.
For a complete definition of ScrolledWindow and its associated resources, see XmScrolledWindow(3).
RELATED
XmScrolledWindow(3).
XmScrolledWindowSetAreas(library call)