Permalink
Browse files

Prepare 0.5.8

  • Loading branch information...
1 parent 2fa4991 commit 9d9b71a7378d35632934e3c5763cb9040ea440da @dagwieers committed Mar 12, 2005
Showing with 9 additions and 5 deletions.
  1. +4 −2 ChangeLog
  2. +5 −3 dstat
View
@@ -1,11 +1,13 @@
* 0.5.8
- Added user stats using python-utmp
- Bail out if all requested stats fail
-- Replaced --noheader option --noheaders (like vmstat)
+- Replaced --noheader option by --noheaders option (like vmstat)
- Added -V as short for --version
- Improved help output
- Allow CSV output and human output concurrently
-- Removed --csv option (now use --output file)
+- Removed --csv option (now use --output option)
+- Added gnome to known ANSI capable terminal emulation
+- Replaced save and restore ANSI to save and restore VT100 (Olav Vitters)
* 0.5.7
- Change Makefile to not install when run without target (Kurt Roeckx)
View
8 dstat
@@ -1123,8 +1123,10 @@ ansi = {
'clear': '\033[2J',
'clearline': '\033[K',
- 'save': '\033[s',
- 'restore': '\033[u',
+# 'save': '\033[s',
+# 'restore': '\033[u',
+ 'save': '\0337',
+ 'restore': '\0338',
'up': '\033[1A',
@@ -1322,7 +1324,7 @@ def main():
### Check terminal capabilities
# import curses
# if not sys.stdout.isatty() or not curses.wrapper(lambda s:curses.has_colors()):
- if not sys.stdout.isatty() or os.environ.get('TERM',None) not in ('ansi', 'linux', 'rxvt', 'screen', 'screen-w', 'xterm'):
+ if not sys.stdout.isatty() or os.environ.get('TERM',None) not in ('ansi', 'gnome', 'linux', 'rxvt', 'screen', 'screen-w', 'xterm'):
op.color = False
op.nolimit = True
op.update = False

0 comments on commit 9d9b71a

Please sign in to comment.