Take a look at the two command below.
The first will give you your terminal size in lines, columns.
IF your terminal can do it, (xterm for example), the second will auto adjust it for you...
The 24 and 80 in the 'printf' statement can be anything to ALMOST the size of your desktop...
Interesting. What do the outer parentheses around $(stty size) accomplish? I know they are used to force execution in a subshell. But what are they doing here?
I would have gone for
The printf statement doesn't seem to accomplish anything over here. What is it supposed to do? Is that documented somewhere?
In terms of documentation I was looking at this and this.
I want to get the screen width and cursor positions.
When I used curses, all the screen content was cleared.
So Can I use curses to get the screen size without clearing anything in the window?
Or is there any other alternative???
I can use only C or C++. (0 Replies)
Hi,
Pleae help me on this. Normally, when we say read username, the cursor will come in the first position of next line, but I want the output of the below
Normal usage
-------------
please enter username:
_
I want like the below
----------------------
please enter username:
... (2 Replies)
Hi to all!
I'm a teacher of maths and physics in an italian high school in Milan, Italy.
I need a simple program that read the position of mouse cursor in function of time and write the coordinates in a text file. The time resolution have to be something like 1/10 sec or better (I have to know... (2 Replies)
hi all,
am trying to modify a ksh script to group server names together depending on the cluster they sit in. currently the script does a
find . -name '*.pid'
to find all running servers and prints out their pids and names.
current output looks something like this :
serverA ... (1 Reply)
I need to get the cursor position, and put it inside a variable. Problem is, i don't have the tput command, or ncurses.
Apparently I was supposed to try the following:
echo -e '\E
But I don't get a value or anything. Please help. (3 Replies)
Hi there.
It's easier to explain this with a pseudo code, I hope this makes sense:
var1=hello
echo $var1
some kind of loop
echo loop counter
done
How do I hold the cursor position immediately behind the last output so I'd get something like:
hello123456789
DOS used to use ","... (5 Replies)
Discussion started by: MuntyScrunt
5 Replies
LEARN ABOUT SUSE
glutsetcursor
glutSetCursor(3GLUT) GLUT glutSetCursor(3GLUT)NAME
glutSetCursor - changes the cursor image of the current window.
SYNTAX
void glutSetCursor(int cursor);
ARGUMENTS
cursor Name of cursor image to change to. Possible values follow:
GLUT_CURSOR_RIGHT_ARROW
Arrow pointing up and to the right.
GLUT_CURSOR_LEFT_ARROW
Arrow pointing up and to the left.
GLUT_CURSOR_INFO
Pointing hand.
GLUT_CURSOR_DESTROY
Skull & cross bones.
GLUT_CURSOR_HELP
Question mark.
GLUT_CURSOR_CYCLE
Arrows rotating in a circle.
GLUT_CURSOR_SPRAY
Spray can.
GLUT_CURSOR_WAIT
Wrist watch.
GLUT_CURSOR_TEXT
Insertion point cursor for text.
GLUT_CURSOR_CROSSHAIR
Simple cross-hair.
GLUT_CURSOR_UP_DOWN
Bi-directional pointing up & down.
GLUT_CURSOR_LEFT_RIGHT
Bi-directional pointing left & right.
GLUT_CURSOR_TOP_SIDE
Arrow pointing to top side.
GLUT_CURSOR_BOTTOM_SIDE
Arrow pointing to bottom side.
GLUT_CURSOR_LEFT_SIDE
Arrow pointing to left side.
GLUT_CURSOR_RIGHT_SIDE
Arrow pointing to right side.
GLUT_CURSOR_TOP_LEFT_CORNER
Arrow pointing to top-left corner.
GLUT_CURSOR_TOP_RIGHT_CORNER
Arrow pointing to top-right corner.
GLUT_CURSOR_BOTTOM_RIGHT_CORNER
Arrow pointing to bottom-left corner.
GLUT_CURSOR_BOTTOM_LEFT_CORNER
Arrow pointing to bottom-right corner.
GLUT_CURSOR_FULL_CROSSHAIR
Full-screen cross-hair cursor (if possible, otherwise GLUT_CURSOR_CROSSHAIR).
GLUT_CURSOR_NONE
Invisible cursor.
GLUT_CURSOR_INHERIT
Use parent's cursor.
DESCRIPTION
glutSetCursor changes the cursor image of the current window. Each call requests the window system change the cursor appropriately. The
cursor image when a window is created is GLUT_CURSOR_INHERIT. The exact cursor images used are implementation dependent. The intent is for
the image to convey the meaning of the cursor name. For a top-level window, GLUT_CURSOR_INHERIT uses the default window system cursor.
X IMPLEMENTATION NOTES
GLUT for X uses SGI's _SGI_CROSSHAIR_CURSOR convention to access a full-screen cross-hair cursor if possible.
SEE ALSO
glutCreateWindow, glutCreateSubWindow
AUTHOR
Mark J. Kilgard (mjk@nvidia.com)
GLUT 3.7 glutSetCursor(3GLUT)