Sponsored Content
Full Discussion: Full-Screen Script
Top Forums Shell Programming and Scripting Full-Screen Script Post 64323 by muthukumar on Tuesday 1st of March 2005 03:49:36 AM
Old 03-01-2005
You can use clear command to show any commands output as full screen based as example as,

#!/bin/ksh
# full screen test

while true; do
clear
ls
sleep 4
done

exit 0
# end

It will show the files in the current directory. sleep 4 is used to syncronize operation.

If i am giving wrong answer let me know your more input to give suitable solution.

HTH.
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Maintain full path of a script in a var when sourcing it from a different script

Hi All, I've searched through the forum for a solution to this problem, but I haven't found anything. I have 2 script files that are in different directories. My first script, let's call it "/one/two/a.sh" looks like this: #!/bin/sh IN_DIR=`dirname $0` CUR_DIR=`pwd` cd $IN_DIR... (4 Replies)
Discussion started by: mrbluegreen
4 Replies

2. OS X (Apple)

Virtual screen accessed by Screen Sharing

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

3. UNIX and Linux Applications

xlib: allow overlay of other windows in full-screen

Hi, I am using the feh slideshow program in full-screen mode. While the slide show is in progress I would like to draw some other windows (something like clock or calendar from gdesklets) on top of this slideshow. Currently feh does not allow me to do that. Below is the code that feh uses to... (0 Replies)
Discussion started by: aerosmith
0 Replies

4. 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

5. UNIX for Dummies Questions & Answers

Accidentally made a screen within a screen - how to move it up one level?

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

6. Shell Programming and Scripting

How to get full width of screen, when using large calculation with bc ?

Experts, When doing large calculation the digits in the screen are limiting to 68 digit and then with a \ ( backspace) next line comes. example: ubuntu# echo "123456789 ^ 50 " | bc 37648602365872212683379005814670372328125515868188009630652959693316\... (4 Replies)
Discussion started by: rveri
4 Replies

7. Shell Programming and Scripting

Need output of script on screen and file with correct return status of the called script.

Hi, I am trying to capture logs of the script in the file as well as on the screen. I have used exec and tee command for this. While using exec command I am getting the correct output in the file but, script output is not getting displayed on the screen as it get executed. Below is my sample... (14 Replies)
Discussion started by: Prathmesh
14 Replies

8. UNIX for Advanced & Expert Users

Sudo for full script

All, When enabling sudo to run a script as root (install scripts, etc), is it required to enable sudo on all the actions/commands in the script or simply on the script itself and everything will run as root? Thanks in advance, HB (3 Replies)
Discussion started by: hburnswell
3 Replies
BlackPixelOfScreen(3)						  XLIB FUNCTIONS					     BlackPixelOfScreen(3)

NAME
BlackPixelOfScreen, WhitePixelOfScreen, CellsOfScreen, DefaultColormapOfScreen, DefaultDepthOfScreen, DefaultGCOfScreen, DefaultVisualOf- Screen, DoesBackingStore, DoesSaveUnders, DisplayOfScreen, XScreenNumberOfScreen, EventMaskOfScreen, HeightOfScreen, HeightMMOfScreen, Max- CmapsOfScreen, MinCmapsOfScreen, PlanesOfScreen, RootWindowOfScreen, WidthOfScreen, WidthMMOfScreen - screen information functions and macros SYNTAX
unsigned long BlackPixelOfScreen(Screen *screen); unsigned long WhitePixelOfScreen(Screen *screen); int CellsOfScreen(Screen *screen); Colormap DefaultColormapOfScreen(Screen *screen); int DefaultDepthOfScreen(Screen *screen); GC DefaultGCOfScreen(Screen *screen); Visual *DefaultVisualOfScreen(Screen *screen); int DoesBackingStore(Screen *screen); Bool DoesSaveUnders(Screen *screen); Display *DisplayOfScreen(Screen *screen); int XScreenNumberOfScreen(Screen *screen); long EventMaskOfScreen(Screen *screen); int HeightOfScreen(Screen *screen); int HeightMMOfScreen(Screen *screen); int MaxCmapsOfScreen(Screen *screen); int MinCmapsOfScreen(Screen *screen); int PlanesOfScreen(Screen *screen); Window RootWindowOfScreen(Screen *screen); int WidthOfScreen(Screen *screen); int WidthMMOfScreen(Screen *screen); ARGUMENTS
screen Specifies the appropriate Screen structure. DESCRIPTION
The BlackPixelOfScreen macro returns the black pixel value of the specified screen. The WhitePixelOfScreen macro returns the white pixel value of the specified screen. The CellsOfScreen macro returns the number of colormap cells in the default colormap of the specified screen. The DefaultColormapOfScreen macro returns the default colormap of the specified screen. The DefaultDepthOfScreen macro returns the default depth of the root window of the specified screen. The DefaultGCOfScreen macro returns the default GC of the specified screen, which has the same depth as the root window of the screen. The DefaultVisualOfScreen macro returns the default visual of the specified screen. The DoesBackingStore macro returns WhenMapped, NotUseful, or Always, which indicate whether the screen supports backing stores. The DoesSaveUnders macro returns a Boolean value indicating whether the screen supports save unders. The DisplayOfScreen macro returns the display of the specified screen. The XScreenNumberOfScreen function returns the screen index number of the specified screen. The EventMaskOfScreen macro returns the root event mask of the root window for the specified screen at connection setup. The HeightOfScreen macro returns the height of the specified screen. The HeightMMOfScreen macro returns the height of the specified screen in millimeters. The MaxCmapsOfScreen macro returns the maximum number of installed colormaps supported by the specified screen. The MinCmapsOfScreen macro returns the minimum number of installed colormaps supported by the specified screen. The PlanesOfScreen macro returns the number of planes in the root window of the specified screen. The RootWindowOfScreen macro returns the root window of the specified screen. The WidthOfScreen macro returns the width of the specified screen. The WidthMMOfScreen macro returns the width of the specified screen in millimeters. SEE ALSO
AllPlanes(3), ImageByteOrder(3), IsCursorKey(3) Xlib - C Language X Interface X Version 11 libX11 1.6.0 BlackPixelOfScreen(3)
All times are GMT -4. The time now is 07:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy