Processtitle

Get the code!

git clone git://opensource.purplescout.se/git/processtitle.git

Example usage

Quick start

import processtitle

processtitle.settitle("fancy program")
processtitle.setkilltitle("fancy")

More examples

import processtitle

# Title manipulations

processtitle.gettitle()
=> 'python2.5'

processtitle.settitle('hello')
processtitle.gettitle()
=> 'hello'

processtitle.gettitlemaxlen()
=> 2321

# Kill title manipulations (shown in 'top' / used by 'killall')

processtitle.getkilltitle()
=> 'python2.5'

processtitle.setkilltitle('hello')
processtitle.getkilltitle()
=> 'hello'

processtitle.getkilltitlemaxlen()
=> 15

Also available in: HTML TXT