Maximizing an xterm or aixterm window?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Maximizing an xterm or aixterm window?
# 1  
Old 09-16-2002
Maximizing an xterm or aixterm window?

Is there a way to maximize an xterm window in a ksh script?

I've tried a number of approaches, but none seem to have the desired affect.

All I want to accomplish is to have the window maximized upon being called in the script...i.e:

xterm -T MyNewXterm -e programToOpen & | maximized --or some such function.

I'm assuming there has to be a way, because the functions are present within the xterm's outer frame, correct? Or is the frame a part of my NT OS that UNIX uses to display the xterm?

Either way, can this be done?

Last edited by spieterman; 09-18-2002 at 03:18 PM..
# 2  
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..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

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

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

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

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

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

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

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

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

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

10. 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
Login or Register to Ask a Question