Debian Bug report logs - #300419
ncurses-bin: reset command resizes 'konsole' window of KDE

version graph

Package: ncurses-bin; Maintainer for ncurses-bin is Craig Small <csmall@debian.org>; Source for ncurses-bin is src:ncurses.

Reported by: wim delvaux <wim.delvaux@adaptiveplanet.com>

Date: Sat, 19 Mar 2005 16:48:12 UTC

Severity: wishlist

Found in version 5.4-4

Done: Daniel Jacobowitz <drow@false.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Daniel Jacobowitz <ncurses-maint@debian.org>:
Bug#300419; Package ncurses-bin. Full text and rfc822 format available.

Acknowledgement sent to wim delvaux <wim.delvaux@adaptiveplanet.com>:
New Bug report received and forwarded. Copy sent to Daniel Jacobowitz <ncurses-maint@debian.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: wim delvaux <wim.delvaux@adaptiveplanet.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: ncurses-bin: reset command resizes 'konsole' window of KDE
Date: Sat, 19 Mar 2005 17:34:17 +0100
Package: ncurses-bin
Version: 5.4-4
Severity: wishlist


when one executes 'reset' in a kde konsole window, the reset commands
resets the size of that konsole window.

Since this is not handy if you just want you tty settings to clear, i would
like to have an option so that reset/tset does NOT reset the window
size.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.9-1-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages ncurses-bin depends on:
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libncurses5                 5.4-4        Shared libraries for terminal hand

-- no debconf information



Message sent on to wim delvaux <wim.delvaux@adaptiveplanet.com>:
Bug#300419. Full text and rfc822 format available.

Message #8 received at 300419-submitter@bugs.debian.org (full text, mbox):

From: Thomas Dickey <dickey@his.com>
To: wim delvaux <wim.delvaux@adaptiveplanet.com>, 300419-submitter@bugs.debian.org
Cc: Daniel Jacobowitz <ncurses-maint@debian.org>
Subject: Re: Bug#300419: ncurses-bin: reset command resizes 'konsole' window of KDE
Date: Sat, 19 Mar 2005 18:41:05 -0500 (EST)
On Sat, 19 Mar 2005, wim delvaux wrote:

> Package: ncurses-bin
> Version: 5.4-4
> Severity: wishlist
>
>
> when one executes 'reset' in a kde konsole window, the reset commands
> resets the size of that konsole window.

Not always.  I'd forgotten about that feature (though I implemented part 
of it; it dates back to 1995).  The window size won't be reset if ncurses 
can reliably determine the current window size (and will then reset it to 
its current size).  If it cannot, it will use the information from the 
terminfo.

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net



Information stored:
Bug#300419; Package ncurses-bin. Full text and rfc822 format available.

Acknowledgement sent to wim delvaux <wim.delvaux@adaptiveplanet.com>:
Extra info received and filed, but not forwarded. Full text and rfc822 format available.

Message #13 received at 300419-quiet@bugs.debian.org (full text, mbox):

From: wim delvaux <wim.delvaux@adaptiveplanet.com>
To: Thomas Dickey <dickey@his.com>, 300419-quiet@bugs.debian.org
Subject: Re: Bug#300419: ncurses-bin: reset command resizes 'konsole' window of KDE
Date: Sun, 20 Mar 2005 01:39:39 +0100
On Sunday 20 March 2005 00:41, Thomas Dickey wrote:
> On Sat, 19 Mar 2005, wim delvaux wrote:
> > Package: ncurses-bin
> > Version: 5.4-4
> > Severity: wishlist
> >
> >
> > when one executes 'reset' in a kde konsole window, the reset commands
> > resets the size of that konsole window.
>
> Not always.  I'd forgotten about that feature (though I implemented part
> of it; it dates back to 1995).  The window size won't be reset if ncurses
> can reliably determine the current window size (and will then reset it to
> its current size).  If it cannot, it will use the information from the
> terminfo.

well is there a way to disable 'detection' so that the window size is kept the 
way it is ?

W



Message sent on to wim delvaux <wim.delvaux@adaptiveplanet.com>:
Bug#300419. Full text and rfc822 format available.

Message #16 received at 300419-submitter@bugs.debian.org (full text, mbox):

From: Thomas Dickey <dickey@his.com>
To: wim delvaux <wim.delvaux@adaptiveplanet.com>
Cc: 300419-submitter@bugs.debian.org
Subject: Re: Bug#300419: ncurses-bin: reset command resizes 'konsole' window of KDE
Date: Sat, 19 Mar 2005 19:49:56 -0500 (EST)
On Sun, 20 Mar 2005, wim delvaux wrote:

> well is there a way to disable 'detection' so that the window size is kept the
> way it is ?

I'm considering it.  But something's amiss with your configuration or
you wouldn't have noticed the feature.  (Equally, since it's usually
cancelled out by working configurations, it's not necessary to tset).

	http://www.faqs.org/rfcs/rfc1073.html

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net



Information stored:
Bug#300419; Package ncurses-bin. Full text and rfc822 format available.

Acknowledgement sent to wim delvaux <wim.delvaux@adaptiveplanet.com>:
Extra info received and filed, but not forwarded. Full text and rfc822 format available.

Message #21 received at 300419-quiet@bugs.debian.org (full text, mbox):

From: wim delvaux <wim.delvaux@adaptiveplanet.com>
To: Thomas Dickey <dickey@his.com>, 300419-quiet@bugs.debian.org
Subject: Re: Bug#300419: ncurses-bin: reset command resizes 'konsole' window of KDE
Date: Sun, 20 Mar 2005 02:48:23 +0100
On Sunday 20 March 2005 01:49, Thomas Dickey wrote:
> On Sun, 20 Mar 2005, wim delvaux wrote:
> > well is there a way to disable 'detection' so that the window size is
> > kept the way it is ?
>
> I'm considering it.  But something's amiss with your configuration or
> you wouldn't have noticed the feature.  (Equally, since it's usually
> cancelled out by working configurations, it's not necessary to tset).
>
>   http://www.faqs.org/rfcs/rfc1073.html

When I run tset (and not reset) it does come ask me for a terminal type 
but reset does not ...

Where shoult that terminal type be defined ?

W



Message sent on to wim delvaux <wim.delvaux@adaptiveplanet.com>:
Bug#300419. Full text and rfc822 format available.

Message #24 received at 300419-submitter@bugs.debian.org (full text, mbox):

From: Thomas Dickey <dickey@his.com>
To: wim delvaux <wim.delvaux@adaptiveplanet.com>
Cc: 300419-submitter@bugs.debian.org
Subject: Re: Bug#300419: ncurses-bin: reset command resizes 'konsole' window of KDE
Date: Sun, 20 Mar 2005 10:18:21 -0500
[Message part 1 (text/plain, inline)]
On Sun, Mar 20, 2005 at 02:48:23AM +0100, wim delvaux wrote:
> On Sunday 20 March 2005 01:49, Thomas Dickey wrote:
> > On Sun, 20 Mar 2005, wim delvaux wrote:
> > > well is there a way to disable 'detection' so that the window size is
> > > kept the way it is ?
> >
> > I'm considering it.  But something's amiss with your configuration or
> > you wouldn't have noticed the feature.  (Equally, since it's usually
> > cancelled out by working configurations, it's not necessary to tset).
> >
> >   http://www.faqs.org/rfcs/rfc1073.html
> 
> When I run tset (and not reset) it does come ask me for a terminal type 
> but reset does not ...

I'm puzzled - reading the source code for tset.c just now, I don't see
a condition where that would happen.  When invoked as reset, tset will
do some additional functions that do not (appear to) affect the logic
that determines the terminal type.
 
> Where shoult that terminal type be defined ?

If $TERM is set to the name of a valid terminfo entry, no further action
is done.  If it is not, then tset will use getttynam() to lookup an entry
(in /etc/ttys).  My system does not have that file, unsetting $TERM causes
reset to prompt for a terminal name.

There's the possibility that we're talking about two different copies of
reset, since the upstream termcap package does provide its own reset, but
I've been discounting that since I don't know that Debian packages that.
Redhat does (making interesting bug-reports).

-- 
Thomas E. Dickey <dickey@invisible-island.net>
http://invisible-island.net
ftp://invisible-island.net
[signature.asc (application/pgp-signature, inline)]

Information stored:
Bug#300419; Package ncurses-bin. Full text and rfc822 format available.

Acknowledgement sent to wim delvaux <wim.delvaux@adaptiveplanet.com>:
Extra info received and filed, but not forwarded. Full text and rfc822 format available.

Message #29 received at 300419-quiet@bugs.debian.org (full text, mbox):

From: wim delvaux <wim.delvaux@adaptiveplanet.com>
To: dickey@his.com, 300419-quiet@bugs.debian.org
Subject: Re: Bug#300419: ncurses-bin: reset command resizes 'konsole' window of KDE
Date: Sun, 20 Mar 2005 17:03:24 +0100
This is my error,

I type 'tset clear' (I think that is what I used on solaris/HP-US/AIX -- donno 
which anymore).

But it seems 'tset' thinks 'clear' is a terminal type.  Hence the question ... 
so forget about my remark about tset

the reset I have is 

u19809@buro:.../u19809$ reset -V
ncurses 5.4.20040208

So the question remains ... why does reset cause my konsole window to resize ?

W
 



Message sent on to wim delvaux <wim.delvaux@adaptiveplanet.com>:
Bug#300419. Full text and rfc822 format available.

Message #32 received at 300419-submitter@bugs.debian.org (full text, mbox):

From: Thomas Dickey <dickey@his.com>
To: wim delvaux <wim.delvaux@adaptiveplanet.com>
Cc: 300419-submitter@bugs.debian.org
Subject: Re: Bug#300419: ncurses-bin: reset command resizes 'konsole' window of KDE
Date: Sun, 20 Mar 2005 11:12:15 -0500 (EST)
On Sun, 20 Mar 2005, wim delvaux wrote:

> This is my error,
>
> I type 'tset clear' (I think that is what I used on solaris/HP-US/AIX -- donno
> which anymore).
>
> But it seems 'tset' thinks 'clear' is a terminal type.  Hence the question ...
> so forget about my remark about tset

ok.

> the reset I have is
>
> u19809@buro:.../u19809$ reset -V
> ncurses 5.4.20040208
>
> So the question remains ... why does reset cause my konsole window to resize ?

My guess: ncurses tries to get the proper screensize, but cannot in some
special cases.

In some cases, the terminal and operating system cannot negotiate to make
the operating system know what the terminal's screensize is.  I don't have
a complete answer to that - but have noticed the problem in networks where
there's no DNS (probably because there's some missing piece in the 
authentication), and if one su's to root (and SIGWINCH doesn't propagate).

The former (no DNS) is something I'm familiar with from lab machines at 
work (but can't experiment much with those - they're off DNS for a good 
reason).

I tried the latter on my home machine yesterday just to check, but wasn't
able to see SIGWINCH breaking.

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net



Information forwarded to debian-bugs-dist@lists.debian.org, Daniel Jacobowitz <ncurses-maint@debian.org>:
Bug#300419; Package ncurses-bin. Full text and rfc822 format available.

Acknowledgement sent to Daniel Jacobowitz <drow@false.org>:
Extra info received and forwarded to list. Copy sent to Daniel Jacobowitz <ncurses-maint@debian.org>. Full text and rfc822 format available.

Message #37 received at 300419@bugs.debian.org (full text, mbox):

From: Daniel Jacobowitz <drow@false.org>
To: wim delvaux <wim.delvaux@adaptiveplanet.com>, 300419@bugs.debian.org
Subject: Re: Bug#300419: ncurses-bin: reset command resizes 'konsole' window of KDE
Date: Sat, 11 Jun 2005 18:08:51 -0400
On Sat, Mar 19, 2005 at 05:34:17PM +0100, wim delvaux wrote:
> Package: ncurses-bin
> Version: 5.4-4
> Severity: wishlist
> 
> 
> when one executes 'reset' in a kde konsole window, the reset commands
> resets the size of that konsole window.
> 
> Since this is not handy if you just want you tty settings to clear, i would
> like to have an option so that reset/tset does NOT reset the window
> size.

I tried to reproduce this, and couldn't - neither with TERM=xterm (the
default) or TERM=konsole.  It sounds like Thomas couldn't either.  Wim,
can you still?

-- 
Daniel Jacobowitz
CodeSourcery, LLC



Information forwarded to debian-bugs-dist@lists.debian.org, Daniel Jacobowitz <ncurses-maint@debian.org>:
Bug#300419; Package ncurses-bin. Full text and rfc822 format available.

Acknowledgement sent to Daniel Jacobowitz <drow@false.org>:
Extra info received and forwarded to list. Copy sent to Daniel Jacobowitz <ncurses-maint@debian.org>. Full text and rfc822 format available.

Message #42 received at 300419@bugs.debian.org (full text, mbox):

From: Daniel Jacobowitz <drow@false.org>
To: wim delvaux <wim.delvaux@adaptiveplanet.com>, 300419@bugs.debian.org
Subject: Re: Bug#300419: ncurses-bin: reset command resizes 'konsole' window of KDE
Date: Sun, 19 Jun 2005 17:22:24 -0400
On Sat, Jun 11, 2005 at 06:08:51PM -0400, Daniel Jacobowitz wrote:
> On Sat, Mar 19, 2005 at 05:34:17PM +0100, wim delvaux wrote:
> > Package: ncurses-bin
> > Version: 5.4-4
> > Severity: wishlist
> > 
> > 
> > when one executes 'reset' in a kde konsole window, the reset commands
> > resets the size of that konsole window.
> > 
> > Since this is not handy if you just want you tty settings to clear, i would
> > like to have an option so that reset/tset does NOT reset the window
> > size.
> 
> I tried to reproduce this, and couldn't - neither with TERM=xterm (the
> default) or TERM=konsole.  It sounds like Thomas couldn't either.  Wim,
> can you still?

OK, Thomas, correct me if I'm wrong here:

screen size: terminfo lines = 24 columns = 80
screen size: environment LINES = 0 COLUMNS = 0
screen size is 28x116
TABSIZE = 8
create :screen konsole 28x116
return }0
tputs( = "\e[3g", 0, 0x80498e0) called
14 REPEATS OF tputs("\eH", 0, 0x80498e0) called
tputs("\e7\e[r\e8\e[m\e[?7h\e[?1;3;4;6l\e[4l\e>\e[?1000l\e[?25h", 0, 0x80498e0) called

That means that ncurses has successfully figured out that the terminal
is 116 columns wide at the moment.  So, it should not be changing it
back to 80 columns.  But it does anyway.

That confused me enough that I stepped through it in GDB.  reset never
uses TIOCSWINSZ in this case.  The terminal size isn't reset until
later: rs2 does it.

So is this a bug in konsole?  \E[?3l is the sequence that does it,
which is in is2/rs2.  I think that's DEC-COLM (turn off 132-column
mode).

-- 
Daniel Jacobowitz
CodeSourcery, LLC



Information forwarded to debian-bugs-dist@lists.debian.org, Daniel Jacobowitz <ncurses-maint@debian.org>:
Bug#300419; Package ncurses-bin. Full text and rfc822 format available.

Acknowledgement sent to Thomas Dickey <dickey@his.com>:
Extra info received and forwarded to list. Copy sent to Daniel Jacobowitz <ncurses-maint@debian.org>. Full text and rfc822 format available.

Message #47 received at 300419@bugs.debian.org (full text, mbox):

From: Thomas Dickey <dickey@his.com>
To: Daniel Jacobowitz <drow@false.org>, 300419@bugs.debian.org
Subject: Re: Bug#300419: ncurses-bin: reset command resizes 'konsole' window of KDE
Date: Sun, 19 Jun 2005 18:06:08 -0400 (EDT)
On Sun, 19 Jun 2005, Daniel Jacobowitz wrote:

> On Sat, Jun 11, 2005 at 06:08:51PM -0400, Daniel Jacobowitz wrote:

...

> That confused me enough that I stepped through it in GDB.  reset never
> uses TIOCSWINSZ in this case.  The terminal size isn't reset until
> later: rs2 does it.
>
> So is this a bug in konsole?  \E[?3l is the sequence that does it,
> which is in is2/rs2.  I think that's DEC-COLM (turn off 132-column
> mode).

Now that I see what you're talking about: this is a user-definable setting
in konsole.  Under

	Configure Konsole
		General
			Allow programs to resize terminal window

But like xterm, that option is normally disabled.  A quick check seems to
show that when it is enabled, konsole acts like xterm does (switches
size back to 80 columns).  Since it's not enabled by default, I'd note 
that it's surprising behavior, but not a bug.

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net



Reply sent to Daniel Jacobowitz <drow@false.org>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to wim delvaux <wim.delvaux@adaptiveplanet.com>:
Bug acknowledged by developer. Full text and rfc822 format available.

Message #52 received at 300419-done@bugs.debian.org (full text, mbox):

From: Daniel Jacobowitz <drow@false.org>
To: Thomas Dickey <dickey@his.com>
Cc: 300419-done@bugs.debian.org, wim delvaux <wim.delvaux@adaptiveplanet.com>
Subject: Re: Bug#300419: ncurses-bin: reset command resizes 'konsole' window of KDE
Date: Sun, 26 Jun 2005 15:34:05 -0400
On Sun, Jun 19, 2005 at 06:06:08PM -0400, Thomas E. Dickey wrote:
> On Sun, 19 Jun 2005, Daniel Jacobowitz wrote:
> 
> >On Sat, Jun 11, 2005 at 06:08:51PM -0400, Daniel Jacobowitz wrote:
> 
> ...
> 
> >That confused me enough that I stepped through it in GDB.  reset never
> >uses TIOCSWINSZ in this case.  The terminal size isn't reset until
> >later: rs2 does it.
> >
> >So is this a bug in konsole?  \E[?3l is the sequence that does it,
> >which is in is2/rs2.  I think that's DEC-COLM (turn off 132-column
> >mode).
> 
> Now that I see what you're talking about: this is a user-definable setting
> in konsole.  Under
> 
> 	Configure Konsole
> 		General
> 			Allow programs to resize terminal window
> 
> But like xterm, that option is normally disabled.  A quick check seems to
> show that when it is enabled, konsole acts like xterm does (switches
> size back to 80 columns).  Since it's not enabled by default, I'd note 
> that it's surprising behavior, but not a bug.

(The xterm option is Allow 80/132 Column Switching.)

I think konsole is behaving as it ought to.  Its reset sequence puts it
into 80 column mode; xterm does the same.  If configured to allow size
changes, this resizes the terminal; xterm does the same.  Unfortunately,
we can't make reset not do this, because the resize is just part of
rs2.  So any changes to this behavior have to be made by konsole.

I'm going to close this bug.

-- 
Daniel Jacobowitz
CodeSourcery, LLC



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 17 Jun 2007 17:30:52 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Apr 20 14:03:34 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.