rxvt -geometry

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
User avatar
8-bit
Posts: 3406
Joined: Wed 04 Apr 2007, 03:37
Location: Oregon

rxvt -geometry

#1 Post by 8-bit »

When one writes a program, that has window positioning, it should be tested on a few different screen resolutions as well as a few different
Puppy versions. I found that the positioning and window size might not work correctly on some resolutions.
Also, remember that some rxvt terminals display black background, white text while another Puppy may have white background black text.

Now I got that out of the way, let us get on with the -geometry explanation.

Given rxvt -bg [background color] -fg [font color] -geometry [character width]x[character height]+[distance from left edge of screen in pixels]
+[distance from top of screen in pixels]

Example: rxvt -bg red -fg black -geometry 45x15+400+600

A + value is from top or left of screen in pixels to top or left of window
A - value is from bottom or right of screen in pixels to bottom or right edge of window

You can test where to display a window by opening a terminal and typing in the example.
A new rxvt window will appear.
Be sure to close the created window before going back to modify the geometry settings.

bugman

#2 Post by bugman »

thanks for that!

[especially the screen position]

Post Reply