I've been toying with curses a little and have found that it believes it has resized it when in fact it has not. When the program exits Putty has spammed "PuTTYPuTTYPuTTYPuTTYPuTTYPuTTY" messages to console no matter what I do, meaning curses is sending it some weird ^e control codes instead of the esc-codes one would expect of an xterm!
Looking up the actual esc codes, I made this shell function:
it acts as expected, so curses seems to be giving bananas resize codes for this for some reason.
---------- Post updated at 12:36 PM ---------- Previous update was at 12:04 PM ----------
On further testing my code was messed up. But whether the call succeeds or not, it seems that it doesn't actually send any codes to resize the window! This may be another one of those strange curses things where it's "supposed to do that" until you do the right voodoo. Or it may be a bug. With curses it's sometimes hard to tell the difference...
Hello,
We someone help me resolve this problem. I have window 2000 professional, windows 98 and Unixware 7.0.1 on the network. I was able to establish connection with all. However, l was unable to ping window 98 from window 2000 professional. I was able to ping the window 2000 from the window... (10 Replies)
I am writing a program to display a database to the screen(xterm) and want to allow the window resize signal to increase/decrease the amount data that is displayed. I have a signal handler function for catching the SIGWINCH event and calling a function to reallocate the space for the windows... (0 Replies)
I was asked to display a banner on the CDE login window and I have successfully accomplished that task. This is what I did:
1) made the directory /etc/dt/config/C
2) cp /usr/dt/config/C/Xresources /etc/dt/config/C
3) I edited /etc/dt/config/C/Xresources and ensured the following lines were... (0 Replies)
I was asked to display a banner on the CDE login window and I have successfully accomplished that task. This is what I did:
1) made the directory /etc/dt/config/C
2) cp /usr/dt/config/C/Xresources /etc/dt/config/C
3) I edited /etc/dt/config/C/Xresources and ensured the following lines were... (0 Replies)
hi all
i get a segmentation fault error in the following program. couldn't understand why it happens. can anyone explain what is really happening.
s1.c
#include<curses.h>
main(){
int c;
noecho();
cbreak();
c=getch();
printf("%c",(char)c);
}
I compiled this program as
cc s1.c... (2 Replies)
Before I re-invent the wheel...
I have written an on-screen keyboard & handwriting input client in Java (spare me please, I get paid to write Java and it will take some time to get back up to speed in C & X11).
In order to concentrate on the other bits, I took advantage of a hack... (0 Replies)
I am running Terminal (xterm) on FreeBSD and XFCE. When opening a new terminal window so that an additional tab appears, the window resizes to become taller and partially hiding behind the task bar. I noticed that Xubuntu has fixed this feature and the window does not resize when opening a second... (0 Replies)
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
LEARN ABOUT OSF1
resize
resize(1X)resize(1X)NAME
resize - set TERMCAP and terminal settings to current xterm window size
SYNOPSIS
resize [-u] [-c] [-s[row col]]
OPTIONS
The following options may be used with resize: This option indicates that Bourne shell commands should be generated even if the user's cur-
rent shell is not /bin/sh. This option indicates that C shell commands should be generated even if the user's current shell is not
/bin/csh. This option indicates that Sun console escape sequences will be used instead of the special xterm escape code. If rows and col-
umns are given, resize will ask the xterm to resize itself. However, the window manager may choose to disallow the change.
DESCRIPTION
The resize command prints a shell command for setting the TERM and TERMCAP environment variables to indicate the current size of xterm win-
dow 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 following alias could be defined in the user's
% 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 do not have command functions will need to send the output to a tem-
porary file and the read it back in with the "." command:
$ resize > /tmp/out
$ . /tmp/out
FILES
for the base termcap entry to modify. user's alias for the command.
BUGS
The -u or -c must appear to the left of -s if both are specified.
SEE ALSO csh(1), tset(1), xterm(1X)AUTHORS
Mark Vandevoorde (MIT-Athena), Edward Moy (Berkeley)
Copyright (c) 1984, 1985 by X Consortium
See X(1X) for a complete copyright notice.
resize(1X)