Skip to content
Browse files

Only rewrite xterm title when XTERM_SHELL is set to bash

  • Loading branch information...
1 parent c9eeb18 commit c0c7cba3cd839bb9c706418a5dbdbae881d1d555 @dagwieers committed Apr 28, 2007
Showing with 15 additions and 10 deletions.
  1. +12 −8 ChangeLog
  2. +1 −1 TODO
  3. +2 −1 dstat
View
20 ChangeLog
@@ -1,10 +1,14 @@
+* 0.6.6svn - ... - released 28/04/2007
+- Only rewrite xterm title when XTERM_SHELL is set to bash
+- Added more Dbt (Debian bug tracker) ids in the ChangeLog and TODO
+
* 0.6.6 - Unemployed - released 28/04/2007
-- Removed SwapCached from the Cached counter. (Peter Rabbitson)
-- Fixed a file descriptor problem on kernel 2.4. (Liviu Daia)
-- Install manpage as part of the make install phase. (Scott Baker)
-- Use SIG_IGN instead of SIG_DFL to disable alarm signal.
-- Improved dev() for kernel 2.4 device names. (Filippo Giunchedi)
-- If stdout is not a TTY, don't limit the line length. (Jason)
+- Removed SwapCached from the Cached counter (Dbt 418326, Peter Rabbitson)
+- Fixed a file descriptor problem on kernel 2.4 (Liviu Daia)
+- Install manpage as part of the make install phase (Scott Baker)
+- Use SIG_IGN instead of SIG_DFL to disable alarm signal
+- Improved dev() for kernel 2.4 device names (Dbt 377199, Filippo Giunchedi)
+- If stdout is not a TTY, don't limit the line length (Jason)
* 0.6.5 - Torrox - released 17/04/2007
- Added VMware ESX plugins (Bert de Bruijn)
@@ -35,7 +39,7 @@
- Added individual swap monitoring (-s with -S)
- Small performance improvements
- Raise module exceptions when --debug is invoked
-- Removed the memory-leaking curses implementation (supastuff@freenode)
+- Removed the memory-leaking curses implementation (Dbt 336380, supastuff@freenode)
- Added dist, rpm and srpm targets to Makefile
- Moved documentation to asciidoc at last
@@ -52,7 +56,7 @@
- Fixed a bug in dpopen causing gpfs/gpfsop to fail after a while
- Change terminal title (if terminal supports it)
- Don't trim the cpulist to 2 items when -f (S�bastien Prud'homme)
-- Exclude md-devices from total (Peter Cordes)
+- Exclude md-devices from total (Dbt 318950, Peter Cordes)
- Now accept 'total' keyword with -C (like -D and -N)
- Rewrote the path-inserting code
- Added asciidoc based manual page
View
2 TODO
@@ -48,7 +48,7 @@ contact me as well. :) Send an email to: Dag Wieers <dag@wieers.com>
+ Python 1.5 prints 'L' for long, crashes when int()
+ Implement better (?) protection against counter rollovers (see mail from Sebastien Prud'homme)
+ Plugins currently have to be written in python 1.5 to work for dstat15 (lowest common denominator)
-+ When stdout is suspend (Ctrl-S) you get: IOError: [Errno 4] Interrupted system call
++ When stdout is suspend (Ctrl-S) you get: IOError: [Errno 4] Interrupted system call (Dbt 309953, Marc Lehmann, supastuff@freenode)
### Plugin issues
+ app plugin: reasonably slow
View
3 dstat
@@ -1743,8 +1743,9 @@ def main():
### Write term-title
if op.isatty:
+ shell = os.getenv('XTERM_SHELL')
term = os.getenv('TERM')
- if term and re.compile('(screen*|xterm*)').match(term):
+ if shell == '/bin/bash' and term and re.compile('(screen*|xterm*)').match(term):
sys.stdout.write('\033]0;(%s@%s) %s %s\007' % (user, hostname, os.path.basename(sys.argv[0]), ' '.join(op.args)))
### Check background color (rxvt)

0 comments on commit c0c7cba

Please sign in to comment.
Something went wrong with that request. Please try again.