Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Control+T in Terminal shows time snapshot' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Control+T in Terminal shows time snapshot
Authored by: MacUser06 on Apr 25, '13 11:11:54PM
There was just no way I could manage to make this work in Snow Leopard, I suspect the Readline library which I love to be the culprit. I added a trap for the SIGINFO signal and a keybinding that triggers the signal in .bashrc to retain the functionality. Feel free to customize the ps command to suit your needs.

 trap 'tty;ps -T -o pid,ppid,pgid,sess,utime,time,pagein,sig,sigmask,nice,nvcsw,nivcsw,command |grep -v "ps -T"' SIGINFO

 bind '"\C-t": "kill -SIGINFO $$\n"'


[ Reply to This | # ]