🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: de.comp.os.unix
4 messages
4 total messages Started by Svante Wellershoff Fri, 12 Jan 1996 00:00
eval `resize` - problem
#1076
Author: Svante Wellershoff
Date: Fri, 12 Jan 1996 00:00
23 lines
2201 bytes
Hi there,

I would like to know, if someone ever had trouble using resize
with tcsh.
"eval `resize`" should set correct xterm-size. "echo `resize`"
even shows the right commands, but unfortunately, eval can't
use this input to set $LINES und $COLUMNS right. 
BTW: does stty looks for this variables $LINES and $COLUMNS to
set it's own cols und rows?
A possiblity might be to set "stty cols" and "stty rows" in a
script, which uses the awk-ed output of "echo `resize`. But
that wouldn't be a nice solution. So, how do I get the output
of resize to the system using tcsh?

Thanx for any posting and mail (wellershoff@zib-berlin.de)

Svante


-------------------------------------------------------------------
  S.-Svante Wellershoff        wellershoff@zib-berlin.de
                               http://www.zib-berlin.de/~bzbwelle
-------------------------------------------------------------------
Re: eval `resize` - problem
#1077
Author: Jerzy Tomasik
Date: Sat, 13 Jan 1996 00:00
31 lines
2258 bytes
Svante Wellershoff <wellershoff@zib-berlin.de> writes:

>Hi there,

>I would like to know, if someone ever had trouble using resize
>with tcsh.
>"eval `resize`" should set correct xterm-size. "echo `resize`"
>even shows the right commands, but unfortunately, eval can't
>use this input to set $LINES und $COLUMNS right. 
>BTW: does stty looks for this variables $LINES and $COLUMNS to
>set it's own cols und rows?
>A possiblity might be to set "stty cols" and "stty rows" in a
>script, which uses the awk-ed output of "echo `resize`. But
>that wouldn't be a nice solution. So, how do I get the output
>of resize to the system using tcsh?

>Thanx for any posting and mail (wellershoff@zib-berlin.de)

>Svante


>-------------------------------------------------------------------
>  S.-Svante Wellershoff        wellershoff@zib-berlin.de
>                               http://www.zib-berlin.de/~bzbwelle
>-------------------------------------------------------------------

This may be platform specific.  I have no problems with resize/tcsh
on HP-UX, SunOS and Apollo Domain, but Solaris is acting up very
much as you've described.  I'm still poking 'round.

-Jerzy
Re: eval `resize` - problem
#1078
Author: Phil Howard
Date: Wed, 17 Jan 1996 00:00
39 lines
2754 bytes
ttomasij@ssi1.com (Jerzy Tomasik) writes:

| Svante Wellershoff <wellershoff@zib-berlin.de> writes:

| >Hi there,

| >I would like to know, if someone ever had trouble using resize
| >with tcsh.
| >"eval `resize`" should set correct xterm-size. "echo `resize`"
| >even shows the right commands, but unfortunately, eval can't
| >use this input to set $LINES und $COLUMNS right. 
| >BTW: does stty looks for this variables $LINES and $COLUMNS to
| >set it's own cols und rows?
| >A possiblity might be to set "stty cols" and "stty rows" in a
| >script, which uses the awk-ed output of "echo `resize`. But
| >that wouldn't be a nice solution. So, how do I get the output
| >of resize to the system using tcsh?

| >Thanx for any posting and mail (wellershoff@zib-berlin.de)

| >Svante


| >-------------------------------------------------------------------
| >  S.-Svante Wellershoff        wellershoff@zib-berlin.de
| >                               http://www.zib-berlin.de/~bzbwelle
| >-------------------------------------------------------------------

| This may be platform specific.  I have no problems with resize/tcsh
| on HP-UX, SunOS and Apollo Domain, but Solaris is acting up very
| much as you've described.  I'm still poking 'round.

I'm running Solaris 2.4 and tcsh and I'm seeing LINES and COLUMNS set OK
from resize.
-- 
Phil Howard KA9WGN      +-------------------------------------------------+
Unix/Internet/Sys Admin |    When freedom is outlawed....                 |
CLR/Fast-Tax            |            ....only outlaws will be free!       |
phil@clr.com            +-------------------------------------------------+
Re: eval `resize` - problem
#1079
Author: Jeff Mcadams
Date: Thu, 18 Jan 1996 00:00
24 lines
1922 bytes
phil@zeus.clr.com (Phil Howard) writes:
>I'm running Solaris 2.4 and tcsh and I'm seeing LINES and COLUMNS set OK
>from resize.

The apps in Solaris (specifically 2.4, not sure about other vers)
apparently do not access the LINES and COLUMNS env. vars. but instead
take their settings out of the terminal setup settings (not sure what
they're called exactly).

I've created a quick script that I can run when I do a window
resize...pretty simple really.

#! /bin/sh

eval `resize`
stty rows $LINES
stty cols $COLUMNS


Then all is hunky dory.  (Told you it was simplistic).

Jeff McAdams             |     A feature is a bug
IgLou Internet Services  |     with seniority.
e-mail:  jeffm@iglou.com |            -- unknown
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads