Sponsored Content
Top Forums Shell Programming and Scripting expanding standard terminal size Post 302096213 by prkfriryce on Tuesday 14th of November 2006 11:35:12 AM
Old 11-14-2006
expanding standard terminal size

what is the Ksh syntax to expand/change the geometry of the running terminal window?

thanks
 

9 More Discussions You Might Find Interesting

1. Red Hat

Standard Greeter font Size (RHEL 3)

In RHEL 3 is there a way to change the font size for the standard greeter text. Jeremy (1 Reply)
Discussion started by: morphous
1 Replies

2. AIX

expanding the size of vg

Hi, I have created the lun of 15gb and assigned to aix,but now I want to expand the size of lun 15gb to 30gb, I am having following queries. 1)wheather i have to umount that partition on aix side before increasing the size of lun on storage side or directly I can increase directly size... (2 Replies)
Discussion started by: manoj.solaris
2 Replies

3. Shell Programming and Scripting

standard error to standard out question

Hi there how can i get the result of a command to not give me its error. For example, on certain systems the 'zfs' command below is not available, but this is fine becaues I am testing against $? so i dont want to see the message " command not found" Ive tried outputting to /dev/null 2>&1 to no... (5 Replies)
Discussion started by: hcclnoodles
5 Replies

4. Shell Programming and Scripting

size of the terminal window

Hi, I am programming a script that shows a figure on screen but I would be centered, so What I have to use command to get the size of the window? Thanks a lot, (2 Replies)
Discussion started by: Gengis-Kahn
2 Replies

5. UNIX for Dummies Questions & Answers

Redirect Standard output and standard error into spreadsheet

Hey, I'm completely new at this and I was wondering if there is a way that I would be able to redirect the log files in a directories standard output and standard error into and excel spreadsheet in anyway? Please remember don't use too advanced of terminology as I just started using shell... (6 Replies)
Discussion started by: killaram
6 Replies

6. Red Hat

terminal size

Is there an easy command to know the size of a terminal window from a command line command? (3 Replies)
Discussion started by: garethsays
3 Replies

7. UNIX for Dummies Questions & Answers

Resizing Terminal Size Upon Login?

Hello All, PC: CuBox-i OS: OpenSuSE 13.1 uname: Linux CuBox 3.14.14-cubox-i #1 SMP Sat Sep 13 03:48:24 UTC 2014 armv7l armv7l armv7l GNU/Linux Shell: Bash So I was trying to see if there was a way to resize the terminal dynamically upon logging into a remote PC. How I login now is to use... (3 Replies)
Discussion started by: mrm5102
3 Replies

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

9. Red Hat

Cannot set 'soft limits' for 'maximum stack size' for a standard user

Hi Guys, I'm trying to install Oracle Database on to Oracle Linux 7.6 but when the database install package checks the OS set-up, it keeps on failing on the soft limits for the stack. It's default value is 8192 but I'm trying to set it to 10240. This is what I added to... (2 Replies)
Discussion started by: ASGR
2 Replies
RESIZE(1)							  X Window System							 RESIZE(1)

NAME
resize - set environment and terminal settings to current xterm window size SYNOPSIS
resize [ -v | -u | -c ] [ -s [ row col ] ] DESCRIPTION
Resize prints a shell command for setting the appropriate environment variables to indicate the current size of xterm window from which the command is run. Resize determines the command through several steps: o first, it finds the name of the user's shell program. It uses the SHELL variable if set, otherwise it uses the user's data from /etc/passwd. o then it decides whether to use Bourne shell syntax or C-Shell syntax. It uses a built-in table of known shells, which can be overrid- den by the -u and -c options. o then resize asks the operating system for the terminal settings. This is the same information which can be manipulated using stty. o then resize asks the terminal for its size in characters. Depending on whether the "-s option is given, resize uses a different escape sequence to ask for this information. o at this point, resize attempts to update the terminal settings to reflect the terminal window's size in pixels: o if the -s option is used, resize then asks the terminal for its size in pixels. o otherwise, resize asks the operating system for the information and updates that after ensuring that the window's dimensions are a multiple of the character height and width. o in either case, the updated terminal settings are done using a different system call than used for stty. o then resize updates the terminal settings to reflect any altered values such as its size in rows or columns. This affects the values shown by stty. o finally, resize writes the shell command for setting the environment variables to the standard output. EXAMPLES
For resize's output to take effect, resize must either be evaluated as part of the command line (usually done with a shell alias or func- tion) 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 .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 then read it back in with the "." command: $ resize > /tmp/out $ . /tmp/out OPTIONS
The following options may be used with resize: -c This option indicates that C shell commands should be generated even if the user's current shell is not /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 using those values. Both of the escape sequences used for this option (first to obtain the window size and second to modify it) are subject to xterm's allowWindowOps resource setting. The window manager may also choose to disallow the change. The VT100-style escape sequence used to determine the screen size always works for VT100-compatible terminals. VT100s have no cor- responding way to modify the screensize. -u This option indicates that Bourne shell commands should be generated even if the user's current shell is not /bin/sh. -v This causes resize to print a version number to the standard output, and then exit. 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 separately. FILES
/etc/termcap for the base termcap entry to modify. ~/.cshrc user's alias for the command. ENVIRONMENT
SHELL Resize determines the user's current shell by first checking if $SHELL is set, and using that. Otherwise it determines the user's shell by looking in the password file (/etc/passwd). Generally Bourne-shell variants (including ksh) do not modify $SHELL, so it is possible for resize to be confused if one runs resize from a Bourne shell spawned from a C shell. TERM Resize sets this to "xterm" if not already set. TERMCAP Resize sets this variable on systems using termcap, e.g., when resize is linked with the termcap library rather than a ter- minfo library. The latter does not provide the complete text for a termcap entry. COLUMNS, LINES Resize sets these variables on systems using terminfo. Many applications (including the curses library) use those variables when set to override their screensize. SEE ALSO
use_env(3) csh(1), stty(1), tset(1) xterm(1) AUTHORS
Mark Vandevoorde (MIT-Athena), Edward Moy (Berkeley) Thomas Dickey (invisible-island.net). Copyright (c) 1984, 1985 by X Consortium See X(7) for a complete copyright notice. Patch #295 2013-07-06 RESIZE(1)
All times are GMT -4. The time now is 11:41 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy