Sponsored Content
Top Forums Shell Programming and Scripting Maximizing an xterm or aixterm window? Post 28440 by spieterman on Wednesday 18th of September 2002 02:14:07 PM
Old 09-18-2002
Not that I wanted to reply to my own post, but here's what I've come up with. It does the trick, but it's still not exactly what I wanted...Oh well, can't complain if it works!

xterm -fn 8x10 -T "Window Title" -geometry 90x25+220+180 -e Program2Open &

Simple explanation...

This opens a window large enough to span the length and width of my monitor (90x25) (19"), and positions it just about in the center of the screen (+220+180). The '-fn' sets the font size, the '-e' opens a separate program/script in the newly created xterm.

Works great as a pop-up window from a main switchboard script. I added a '. resize' to the opening program script to eliminate any resizing issues.

Kind of cluttered I know, but extremely functional. If anyone knows an easier way to maximize an xterm programmatically, please let me know.

--S

Last edited by spieterman; 09-19-2002 at 12:35 PM..
 

10 More Discussions You Might Find Interesting

1. Solaris

Maximizing 20GB HDD space

hello All! I have sun ultra5 pc with 9GB HDD and I'm planning to add 20GB HHD for future expansion and it is coming from my old intel based pc. My problem is everytime I formatted the new HD the system only gives me the result of free space for about 2GB+ as a maximum space. I have... (1 Reply)
Discussion started by: xtian
1 Replies

2. UNIX for Dummies Questions & Answers

how to disable color text in xterm window

Hello, Anyone knows how to disable color text displayed on xterm window screen? I hate that color making me hard to read when front and background color are similar. Thanks, M. (1 Reply)
Discussion started by: modemer
1 Replies

3. UNIX for Dummies Questions & Answers

Equivalent unix command to minimize/maximize xterm window

To all experts, I need some advice on how I can enter a unix command which is equivalent to the action of minimizing/maximizing an active xterm window. How can I do this (i) when control is in the active xterm window to be minimized/maximized , & (ii) when control is in a xterm window which runs... (0 Replies)
Discussion started by: icemocha75
0 Replies

4. UNIX for Advanced & Expert Users

Change title of aixterm window online

Is there any way to change title of aixterm window online? Also is it possible to freeze first/last few lines online? (1 Reply)
Discussion started by: Soham
1 Replies

5. UNIX for Dummies Questions & Answers

Bringing an Xterm window to top

Hi, Is there a way to configure a Linux machine so that I can click on any where on the Xterm window to bring it to the front/top. By default, I have to click on the title bar but often the entire title bar is underneath another window. Thanks in advance! PS. GNU/Linux (4 Replies)
Discussion started by: pidge66
4 Replies

6. Shell Programming and Scripting

How do I Get the Title of My Putty Window (Emulating an XTerm)

I have a Perl script that changes the terminal window title and I would like to reset it to the original value when I am done. We are using Putty which emulates xterm. We are not running X-Windows so I can't use something like xprop (can I?). I'm using XTerm control codes to change the title and I... (2 Replies)
Discussion started by: NateTut
2 Replies

7. Red Hat

Maximizing X window without Window Switcher

Hi everyone! I have a strange situation. I'm running an NX remote Gnome desktop session. On the remote machine, there is a whole load of unsaved data in a window. A problem that I've been having with this NX session is that I can't load Gnome Applets, including the Window Switcher. So.. when I... (0 Replies)
Discussion started by: alexandicity
0 Replies

8. Red Hat

How to set xterm for Window Titls for PuTTy

Hi, I still cant find step by step manual how to make my putty display let say PWD in its title, read about some xterm, but where it is? Can anybody help me with this. Thx M (4 Replies)
Discussion started by: trento17
4 Replies

9. Shell Programming and Scripting

Xterm window,should not prompt for a password?

Hi all, I have a script that opens a xterm window and will prompt for a password. My intention is, instead of waiting for a password it should get the password from a file. How can I make this happen.?:confused: Any help much appreciated. (1 Reply)
Discussion started by: dnam9917
1 Replies

10. UNIX for Beginners Questions & Answers

Toggle between xterm window and standard terminal window

Is it possible to toggle back and forth between an xterm invoked from one tty, and a shell invoked from a different tty? I am running Centos 7 with KDE and booting in non-graphic mode. After logging in on the default window (/dev/tty1) , I can then use ALT-F2 to access a new window (/dev/tty2),... (1 Reply)
Discussion started by: rhgscty
1 Replies
RESIZE(1)						      General Commands Manual							 RESIZE(1)

NAME
resize - set TERMCAP and terminal settings to current xterm window size SYNOPSIS
resize [ -u | -c ] [ -s [ row col ] ] DESCRIPTION
Resize prints a shell command for setting the TERM and TERMCAP environment variables to indicate the current size of xterm window from which the command is run. For this output to take effect, resize must either be evaluated as part of the command line (usually done with a shell alias or function) or else redirected to a file which can then be read in. From the C shell (usually known as /bin/csh), the follow- ing alias could be defined in the user's .cshrc: % alias rs 'set noglob; eval `resize`' After resizing the window, the user would type: % rs Users of versions of the Bourne shell (usually known as /bin/sh) that don't have command functions will need to send the output to a tempo- rary file and the read it back in with the ``.'' command: $ resize > /tmp/out $ . /tmp/out OPTIONS
The following options may be used with resize: -u This option indicates that Bourne shell commands should be generated even if the user's current shell isn't /bin/sh. -c This option indicates that C shell commands should be generated even if the user's current shell isn't /bin/csh. -s [rows columns] This option indicates that Sun console escape sequences will be used instead of the VT100-style xterm escape codes. If rows and columns are given, resize will ask the xterm to resize itself. However, the window manager may choose to disallow the change. Note that the Sun console escape sequences are recognized by XFree86 xterm and by dtterm. The resize program may be installed as sunsize, which causes makes it assume the -s option. The rows and columns arguments must appear last; though they are normally associated with the -s option, they are parsed sepa- rately. FILES
/etc/termcap for the base termcap entry to modify. ~/.cshrc user's alias for the command. SEE ALSO
csh(1), tset(1), xterm(1) AUTHORS
Mark Vandevoorde (MIT-Athena), Edward Moy (Berkeley) Copyright (c) 1984, 1985 by X Consortium See X(7x) for a complete copyright notice. XFree86 Version Version 4.3.0 RESIZE(1)
All times are GMT -4. The time now is 12:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy