02-23-2009
If you think you will see the terminal resize itself then no that won' happen. That's because every time the terminal window is resized (by moving it in/out with the mouse) the new values of the struct winsize members are stored by the kernel and a SIGWINCH is generated to all the curently running processes so that they can redraw their interface. The vi editor is a good example of a program that redraws itself when such a signal is received.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi all.
I need to be able to get image (gif/jpg) height and
widths from the server so I can size pop-up windows to fit the
images. Is there a built in utility that accomplishes this on Unix
or Linux? (1 Reply)
Discussion started by: Jabba
1 Replies
2. Solaris
Is it possible to change the title of a Terminal window on Solaris? For example, for a MS Windows command window, one can simply type "title NameofWindow" to change the title for a command window.
I was looking for similar functionality for terminal windows.
Thanks. (8 Replies)
Discussion started by: here2learn
8 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I hope I'm posting in the correct forum, so here goes. I would like for the mouse right/left click to work in Terminal (OSX) as it does in Putty.
For instance, when I double click 'log' in file.log.gz, only the log part is highlighted (in Terminal), while in Putty the entire file name is... (0 Replies)
Discussion started by: TheChemist
0 Replies
4. Solaris
Hi all,
I was wondering how to change the PS1 to my liking?
I tried changing it using PS1='my choice'
it worked but the subsequent terminals i open will not have it as the default PS1 ,how do i change it?
also i am running as super user, and i need to exec bash, to get the bash environment...... (4 Replies)
Discussion started by: wrapster
4 Replies
5. Programming
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)
Discussion started by: Sreejesh.S
0 Replies
6. OS X (Apple)
Hello,
I was wondering how to change a user's Long Name through the terminal. I am writing a shell script to change some settings back to the default, and could not find how to do this (or even if you can do this).
I do not want to use applescript. (2 Replies)
Discussion started by: The Reepr
2 Replies
7. Shell Programming and Scripting
Hi all,
I have a shell script which uses "mailx -H" to get the subject of a email in a Linux system.
However, the subject is truncated, and I think it has something to do with the terminal width because it only returns the first 80 characters of each line.
I have tried "stty columns"... (7 Replies)
Discussion started by: mezzo
7 Replies
8. Shell Programming and Scripting
i already have a running and working script for remote connection. is there a way to change the terminal color everytime I ssh remotely to another server? this is to avoid confusion since I will be using only one server to remotely access around 50 servers (solaris, linux,. etc) (2 Replies)
Discussion started by: lhareigh890
2 Replies
9. Programming
I was reading Advanced Programming in the Unix Environment and it says to use ioctl() to get the terminal's width and height. I wrote this program:
// print width and height
#include <stdio.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <termios.h>
int main( int argc, char... (3 Replies)
Discussion started by: Ultrix
3 Replies
10. IP Networking
Hi, guys, I was using an online utility to check wheather or not an email existed, and they gave me three tries. I thought clearing temp and cookies would work, but it looks like they grabbed a hold of my IP. :mad: Now, I'd like to make a shell script that changes my IP. Not bad...yet. I'm using... (7 Replies)
Discussion started by: Ihatewindows
7 Replies
LEARN ABOUT HPUX
xtconfigurewidget
XtConfigureWidget() XtConfigureWidget()
Name
XtConfigureWidget - move and/or resize widget.
Synopsis
void XtConfigureWidget(w, x, y, width, height, border_width)
Widget w;
Position x;
Position y;
Dimension width;
Dimension height;
Dimension border_width;
Inputs
w Specifies the widget; must be of class RectObj or any subclass thereof.
x, y Specify the widget's new x and y coordinates.
width, height, border_width
Specify the widget's new dimensions.
Description
XtConfigureWidget() sets the size and position of a widget. If the new size and position are the same as the widget's current values, it
returns immediately. Otherwise XtConfigureWidget() writes the new x, y, width, height, and border_width values into instance fields of the
object and, if the object is a widget and is realized, calls XConfigureWindow() on the widget's window.
If either the new width or the new height is different from its old value, XtConfigureWidget() calls the widget's resize() method to notify
it of the size change.
Usage
XtConfigureWidget() should be used only by a parent widget on one of its children widget. If you want to set a widget size or position
from an application, use XtSetValues() to set the XtNx, XtNy, XtNwidth, and XtNheight resources. If widget wants to change its own size or
location, it must use XtMakeGeometryRequest().
XtResizeWidget() and XtMoveWidget() are similar to XtConfigureWidget() but are simpler for the cases when you need only to resize or only
to move a widget.
See Also
XtMakeGeometryRequest(1), XtMakeResizeRequest(1), XtMoveWidget(1), XtResizeWidget(1).
Xt - Geometry Management XtConfigureWidget()