[Aptitude-devel] Bug#730795: Bug#730795: aptitude: buggy newline output with aptitude-curses in case of error during package install
Vincent Lefevre
vincent at vinc17.net
Fri Nov 29 16:32:27 UTC 2013
Hi Axel,
On 2013-11-29 17:11:21 +0100, Axel Beckert wrote:
> Same here, also with xterm and on nearly every architecture. But
> just for a few days so far.
I didn't notice it either in the past, but I don't remember when
the previous error occurred.
> Since aptitude hasn't seen much change recently I rather suspect an
> hook in /etc/apt/apt.conf.d/ to be the cause.
FYI:
ypig:~> lt /etc/apt/apt.conf.d/
total 52
-rw-r--r-- 1 514 2013-11-15 17:35:41 01autoremove-kernels
-rw-r--r-- 1 520 2013-10-06 17:40:14 10apt-listbugs
-rw-r--r-- 1 350 2013-07-11 21:21:46 01autoremove
-rw-r--r-- 1 82 2013-06-11 01:24:12 10apt
-rw-r--r-- 1 3739 2013-05-16 11:08:32 50unattended-upgrades
-rw-r--r-- 1 164 2012-10-02 08:13:13 20apt-show-versions
-rw-r--r-- 1 1040 2012-08-21 17:05:52 20packagekit
-rw-r--r-- 1 182 2010-01-11 13:01:17 70debconf
-rw-r--r-- 1 119 2010-01-04 23:44:10 10aptitude
-rw-r--r-- 1 123 2010-01-04 23:43:00 20listchanges
-rw-r--r-- 1 127 2010-01-04 23:41:31 90debsums.bak
-rw-r--r-- 1 40 2010-01-04 16:30:00 00trustcdrom
-rw-r--r-- 1 243 2009-12-16 09:02:37 20dbus
> Didn't notice that Enter no more works afterwards as I usually stop
> aptitude with Ctrl-C at that point anyway. But I noticed that typing
> into the terminal does not echo the keys either, so it looks as if the
> terminal has been set to some different mode, but no more set back.
I think that the incorrect newlines could be due to a different
terminal mode.
> So typing "reset<Enter>" blindly after pressing Ctrl-C should always
> help.
I don't remember what I did after, but I either restarted aptitude
without looking or I hit Ctrl-D to end the root shell and my precmd
zsh hook fixed the terminal mode (very useful!) with rmacs + sgr0; I
also have the "ttyctl -f" feature (which should fix the echo mode).
BTW, shouldn't aptitude-curses fix the terminal mode (a bit like what
my precmd zsh hook and "ttyctl -f" do) between each apt.conf.d hook?
--
Vincent Lefèvre <vincent at vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
More information about the Aptitude-devel
mailing list