Your message dated Thu, 24 Apr 2008 23:02:17 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#475140: fixed in mytop 1.6-2
has caused the Debian Bug report #475140,
regarding the patch for removing the terminal flicker
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)
--
475140: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=475140
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: mytop
Version: 1.6
Severity: normal
Tags: patch
see attache
Recently I've begun to use mytop. Everything is very comfortable except
the fact that the terminal flickers when repainting. I've written the
patch removing this effect.
Unfortunately I can't test it on many platforms so I've realised it as
an additional option --vt100.
--- mytop 2008-04-09 12:14:52.000000000 +0400
+++ mytop 2008-04-09 14:10:25.000000000 +0400
@@ -76,6 +76,7 @@
## Default Config Values
my %config = (
+ vt100 => 0,
batchmode => 0,
color => 1,
db => 'test',
@@ -107,6 +108,13 @@
my $CLEAR = $WIN ? '': `clear`;
+my %vt100_commands=
+(
+ CURSOR_TO_START => "\x1b[0;0f",
+ CURSOR_SAVE => "\x1b[s",
+ CURSOR_RESTORE => "\x1b[u",
+);
+
## Term::ReadKey values
my $RM_RESET = 0;
@@ -143,6 +151,7 @@
Getopt::Long::Configure('no_ignore_case', 'bundling');
GetOptions(
+ "vt100" => \$config{vt100},
"color!" => \$config{color},
"user|u=s" => \$config{user},
"pass|password|p=s" => \$config{pass},
@@ -161,6 +170,8 @@
"sort=s" => \$config{sort},
);
+-t STDOUT or $config{vt100}=undef;
+
## User may have put the port with the host.
if ($config{host} =~ s/:(\d+)$//)
@@ -685,6 +696,13 @@
}
}
+sub CursorToStartNotClear()
+{
+ $config{vt100} or return Clear;
+ $WIN and return Clear;
+ print $vt100_commands{CURSOR_TO_START};
+}
+
my $last_time;
sub GetData()
@@ -813,7 +831,7 @@
my $host_width = 52;
my $up_width = $width - $host_width;
- Clear() unless $config{batchmode};
+ CursorToStartNotClear() unless $config{batchmode};
print RESET();
printf "%-${host_width}s%${up_width}s\n",
@@ -899,7 +917,7 @@
if (not $config{batchmode} and not $config{header})
{
- Clear();
+ CursorToStartNotClear();
print RESET();
}
@@ -1059,6 +1077,13 @@
}
+
+ if ($config{vt100} and not $config{batchmode})
+ {
+ print $vt100_commands{CURSOR_SAVE};
+ print join "\n", (" "x$width)x($lines_left+2);
+ print $vt100_commands{CURSOR_RESTORE};
+ }
}
###########################################################################
@@ -1706,6 +1731,11 @@
Use if you'd like B<mytop> to connect to a specific database by
default. Default: ``B<test>''.
+=item B<--vt100>
+
+For screen re-drawing use esc-sequence vt100. It is remove terminal
+twinkling.
+
=item B<-b> or B<--batch> or B<--batchmode>
In batch mode, mytop runs only once, does not clear the screen, and
signature.asc
Description: Digital signature
--- End Message ---
--- Begin Message ---
Source: mytop
Source-Version: 1.6-2
We believe that the bug you reported is fixed in the latest version of
mytop, which is due to be installed in the Debian FTP archive:
mytop_1.6-2.diff.gz
to pool/main/m/mytop/mytop_1.6-2.diff.gz
mytop_1.6-2.dsc
to pool/main/m/mytop/mytop_1.6-2.dsc
mytop_1.6-2_all.deb
to pool/main/m/mytop/mytop_1.6-2_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Philipp Matthias Hahn <[EMAIL PROTECTED]> (supplier of updated mytop package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Fri, 25 Apr 2008 00:45:46 +0200
Source: mytop
Binary: mytop
Architecture: source all
Version: 1.6-2
Distribution: unstable
Urgency: low
Maintainer: Philipp Matthias Hahn <[EMAIL PROTECTED]>
Changed-By: Philipp Matthias Hahn <[EMAIL PROTECTED]>
Description:
mytop - top like query monitor for MySQL
Closes: 424063 434625 455901 475140
Changes:
mytop (1.6-2) unstable; urgency=low
.
* Big thanks to "Dmitry E. Oboukhov" <dimka avanto org> for his work.
* debian/control:
- Bumped Standards-Version to 3.7.3
- Add Homepage:-field
- Build-Depends: quilt
* debian/menu: Move to "Applications/Data Management"
* debian/rules:
- add Quilt support
- fix clean and binary-arch targets
* A newline should be replaced by a space, not just deleted (Closes:
#434625)
* Unknown database 'test', use '' instead (Closes: #424063)
* Use of uninitialized value in substitution (s///) at /usr/bin/mytop
line 958. (Closes: #455901)
* apply patch for removing the terminal flicker (Closes: #475140)
Checksums-Sha1:
3090d7d8ed560e5665374952e5eef4b9795389ff 1069 mytop_1.6-2.dsc
ecc0b1df95aface4f1f24abe0a17f55750a5af67 6658 mytop_1.6-2.diff.gz
a3b3c5f9b774623a7496eb07398493675af5b375 33328 mytop_1.6-2_all.deb
Checksums-Sha256:
0a80b778224b309186675691c91c2cd47e27916c44ca8866141bb1134b065f15 1069
mytop_1.6-2.dsc
a67231c1a6d99654c0691e8d62acb2199a36e2abaeb2591a815fe80e61c27bda 6658
mytop_1.6-2.diff.gz
74dfa6523885063ab1bc570106e6a26bb8a2ffda679ae14458c28cb127e1d42d 33328
mytop_1.6-2_all.deb
Files:
7e521050355f91a4c512162c4e710648 1069 utils optional mytop_1.6-2.dsc
988e78fc36a2539278c221776335b8de 6658 utils optional mytop_1.6-2.diff.gz
a3ceab91f04aace028813d184b08ff95 33328 utils optional mytop_1.6-2_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFIEQ2+YPlgoZpUDjkRAj3/AKC/iKZIBglYC8SRGPBDaknT4trcQgCeJg+G
0ue/JLtt3Fa+15ZxSdRlmCw=
=CB4C
-----END PGP SIGNATURE-----
--- End Message ---