Sponsored Content
Top Forums Shell Programming and Scripting Xterm console windows at X,Y position Post 302551986 by jerold on Thursday 1st of September 2011 09:47:49 AM
Old 09-01-2011
Xterm console windows at X,Y position

Hi all
I want run Xterm and set it windows to a specific position ( inside Gnome display ) :

may be I want run Xterm and set it at the low-right corner of screen... I know "geometry" parameter for windows size but for position is there something ?

Thanks
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

customizing xterm windows

Does anyone now how to customize an xterm window in solaris to dynamically 'pwd' in the banner. I know how to launch with xterm -n 'cwd' but it does not change when I change dir's. (4 Replies)
Discussion started by: toddy44
4 Replies

2. UNIX for Dummies Questions & Answers

xterm vs console

May be a simple question --->whats the difference between Xterm and console? (2 Replies)
Discussion started by: param
2 Replies

3. Shell Programming and Scripting

how to find a position and print some string in the next and same position

I need a script for... how to find a position of column data and print some string in the next line and same position position should find based on *HEADER8* in text for ex: ord123 abs 123 987HEADER89 test234 ord124 abc 124 987HEADER88 test235 ... (1 Reply)
Discussion started by: naveenkcl
1 Replies

4. UNIX for Advanced & Expert Users

xterm console

Is it possible to connect an xterm session to the console .. ie. `tty` returns /dev/console from a script (Ksh)? (Execute script within an xterm) If so, how? (I take it that C-shell is not possible) (2 Replies)
Discussion started by: sreyes27
2 Replies

5. UNIX for Dummies Questions & Answers

Windows to Linux remote console using VNC brings up blank console screen with only mouse pointer

:confused:Hi This was installed on the Linux box a few weeks back by a guy that no longer works for us. All worked fine until last week. Now when we connect its just a blank screen with no icons. I get a whole bunch of errors when starting the service too: Tue Feb 23 14:29:45 2010 ... (1 Reply)
Discussion started by: wbdevilliers
1 Replies

6. Shell Programming and Scripting

Remove text from n position to n position sed/awk

I want to remove text from nth position to nth position couple of times in same line my line is "hello is there anyone can help me with this question" I need like this ello is there anyone can help me with question 'h' is removed and 'this' removed from the line. I want to do this... (5 Replies)
Discussion started by: elamurugu
5 Replies

7. Shell Programming and Scripting

Need command or script to print all lines from 2nd position to last but one position

hi guys, i want command or script to display the content of file from 2nd position to last but one position of a file abcdefghdasdasdsd 123,345,678,345,323 434,656,656,656,656 678,878,878,989,545 4565656667,65656 i want to display the same above file without first and... (2 Replies)
Discussion started by: hemanthsaikumar
2 Replies

8. UNIX for Dummies Questions & Answers

Can we build a tool for Windows to retrieve data from UNIX servers (putty console)

Hi Friends, Is it possible to build a windows tool ( a java applet maybe? ) which can retrieve data and display after performing certain commands on unix servers ( simple grep / script output) after logging into putty console. I am on a company server so please bear that in mind. I might have... (23 Replies)
Discussion started by: srkmish
23 Replies

9. Shell Programming and Scripting

Search for a string at a particular position and replace with blank based on position

Hi, I have a file with multiple lines(fixed width dat file). I want to search for '02' in the positions 45-46 and if available, in that lines, I need to replace value in position 359 with blank. As I am new to unix, I am not able to figure out how to do this. Can you please help me to achieve... (9 Replies)
Discussion started by: Pradhikshan
9 Replies

10. Shell Programming and Scripting

Inserting value at a particular position without changing the position of other characters

Hi All, I wanted a sed/awk command to add a value/character on a particular position without disturbing the position of other characters. I have file a.txt OL 10031 Day Black Midi Good Value P01 P07 OL 10031 Day Black Short Good Value P01 P07 I want to get the output as... (2 Replies)
Discussion started by: rahulsk
2 Replies
XConfigureWindow(3X11)						     MIT X11R4						    XConfigureWindow(3X11)

Name
       XConfigureWindow, XMoveWindow, XResizeWindow, XMoveResizeWindow, XSetWindowBorderWidth, XWindowChanges - configure windows and window
       changes structure

Syntax
       XConfigureWindow(display, w, value_mask, values)
	  Display *display;
	  Window w;
	  unsigned int value_mask;
	  XWindowChanges *values;

       XMoveWindow(display, w, x, y)
	  Display *display;
	  Window w;
	  int x, y;

       XResizeWindow(display, w, width, height)
	  Display *display;
	  Window w;
	  unsigned int width, height;

       XMoveResizeWindow(display, w, x, y, width, height)
	  Display *display;
	  Window w;
	  int x, y;
	  unsigned int width, height;

       XSetWindowBorderWidth(display, w, width)
	  Display *display;
	  Window w;
	  unsigned int width;

Arguments
       display	 Specifies the connection to the X server.

       value_mask
		 Specifies which values are to be set using information in the values structure.  This mask is the bitwise inclusive OR of the
		 valid configure window values bits.

       values	 Specifies a pointer to the structure.

       w	 Specifies the window to be reconfigured, moved, or resized..

       width	 Specifies the width of the window border.

       width
       height	 Specify the width and height, which are the interior dimensions of the window.

       x
       y	 Specify the x and y coordinates, which define the new location of the top-left pixel of the window's border or the window itself
		 if it has no border or define the new position of the window relative to its parent.

Description
       The function uses the values specified in the structure to reconfigure a window's size, position, border, and stacking order.  Values not
       specified are taken from the existing geometry of the window.

       If a sibling is specified without a stack_mode or if the window is not actually a sibling, a error results.  Note that the computations for
       and are performed with respect to the window's final geometry (as controlled by the other arguments passed to not its initial geometry.
       Any backing store contents of the window, its inferiors, and other newly visible windows are either discarded or changed to reflect the
       current screen contents (depending on the implementation).

       can generate and errors.

       The function moves the specified window to the specified x and y coordinates, but it does not change the window's size, raise the window,
       or change the mapping state of the window.  Moving a mapped window may or may not lose the window's contents depending on if the window is
       obscured by nonchildren and if no backing store exists.	If the contents of the window are lost, the X server generates events.	Moving a
       mapped window generates events on any formerly obscured windows.

       If the override-redirect flag of the window is and some other client has selected on the parent, the X server generates a event, and no
       further processing is performed.  Otherwise, the window is moved.

       can generate a error.

       The function changes the inside dimensions of the specified window, not including its borders.  This function does not change the window's
       upper-left coordinate or the origin and does not restack the window.  Changing the size of a mapped window may lose its contents and gener-
       ate events.  If a mapped window is made smaller, changing its size generates events on windows that the mapped window formerly obscured.

       If the override-redirect flag of the window is and some other client has selected on the parent, the X server generates a event, and no
       further processing is performed.  If either width or height is zero, a error results.

       can generate and errors.

       The function changes the size and location of the specified window without raising it.  Moving and resizing a mapped window may generate an
       event on the window.  Depending on the new size and location parameters, moving and resizing a window may generate events on windows that
       the window formerly obscured.

       If the override-redirect flag of the window is and some other client has selected on the parent, the X server generates a event, and no
       further processing is performed.  Otherwise, the window size and location are changed.

       can generate and errors.

       The function sets the specified window's border width to the specified width.

       can generate a error.

Structures
       The structure contains:

       /* Configure window value mask bits */

       #define				(1<<0)
       #define				(1<<1)
       #define				(1<<2)
       #define				(1<<3)
       #define				(1<<4)
       #define				(1<<5)
       #define				(1<<6)
       /* Values */

       typedef struct {
	 int x, y;
	 int width, height;
	 int border_width;
	 Window sibling;
	 int stack_mode;
       } XWindowChanges;

       The x and y members are used to set the window's x and y coordinates, which are relative to the parent's origin and indicate the position
       of the upper-left outer corner of the window.  The width and height members are used to set the inside size of the window, not including
       the border, and must be nonzero, or a error results.  Attempts to configure a root window have no effect.

       The border_width member is used to set the width of the border in pixels.  Note that setting just the border width leaves the outer-left
       corner of the window in a fixed position but moves the absolute position of the window's origin.  If you attempt to set the border-width
       attribute of an window nonzero, a error results.

       The sibling member is used to set the sibling window for stacking operations.  The stack_mode member is used to set how the window is to be
       restacked and can be set to or

Diagnostics
       An	 window is used as a Drawable.

       Some argument or pair of arguments has the correct type and range but fails
		 to match in some other way required by the request.

       Some numeric value falls outside the range of values accepted by the request.
		 Unless a specific range is specified for an argument, the full range defined by the argument's type is accepted. Any argument
		 defined as a set of alternatives can generate this error.

       A value for a Window argument does not name a defined Window.

See Also
       XChangeWindowAttributes(3X11), XCreateWindow(3X11), XDestroyWindow(3X11), XMapWindow(3X11), XRaiseWindow(3X11), XUnmapWindow(3X11)
       X Window System: The Complete Reference, Second Edition, Robert W. Scheifler and James Gettys

															    XConfigureWindow(3X11)
All times are GMT -4. The time now is 10:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy