| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD |
| X-Spam-Check-By: | sourceware.org |
| To: | cygwin AT cygwin DOT com |
| connect(): | No such file or directory |
| From: | Hans Horn <hannes AT 2horns DOT com> |
| Subject: | Re: Resizing a terminal window |
| Date: | Fri, 07 May 2010 14:54:33 -0700 |
| Lines: | 43 |
| Message-ID: | <hs226p$3p2$1@dough.gmane.org> |
| References: | <e8rljbzahnf DOT fsf AT FLM000025LVE9F DOT catmktg DOT com> <4BE0903A DOT 3030207 AT towo DOT net> <e8r6332e5ao DOT fsf AT FLM000025LVE9F DOT catmktg DOT com> <hrs3hq$3pj$1 AT dough DOT gmane DOT org> <e8raasb8wqc DOT fsf AT FLM000025LVE9F DOT catmktg DOT com> <hs1jge$d9c$1 AT dough DOT gmane DOT org> <e8r632z8q9q DOT fsf AT FLM000025LVE9F DOT catmktg DOT com> |
| Mime-Version: | 1.0 |
| User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 |
| In-Reply-To: | <e8r632z8q9q.fsf@FLM000025LVE9F.catmktg.com> |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
David,
you're very welcome!
H.
On 5/7/2010 12:29 PM, J. David Boyd wrote:
> Hans Horn<hannes AT 2horns DOT com> writes:
>
>> David,
>>
>> This took me forever to figure out!
>>
>> 'expect' does not forward SIGWINCH
>> (http://en.wikipedia.org/wiki/SIGWINCH) unless told to do so.
>>
>> Add the following snippet (between lines marked with
>> ###################) to the beginning of your 'expect' script:
>>
>> #!/bin/sh
>> # \
>> exec expect -f "$0" ${1+"$@"}
>>
>> ###################
>> trap { # trap sigwinch and pass it to the child we spawned
>> set rows [stty rows]
>> set cols [stty columns]
>> stty rows $rows columns $cols< $spawn_out(slave,name)
>> } WINCH
>> ###################
>>
>> set host [lindex $argv 0]
>> ...
>>
>> I use this to log on from cygwin to various AIX and LINUX machines.
>>
>> Good luck and let me know how goes,
>> Hans
>
>
> That worked perfectly! Thank you very much, I don't think I would have
> ever figured that out!
>
> Dave
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |