As many of you may know, the CLI tool "top" is a very useful tool that lists open processes in order of the resources they are using. The tool is available from Saurik's Cydia/Telesphoreo repo and has long been a staple in troubleshooting battery and memory issues on jail broken phones.
But if you've tried to run "top" in iOS 7, you have probably seen an error like this:
After much frustration, I found a simple solution to this problem in reddit, and thought I'd put it here for anyone else who's got the same problem.
The issue is caused by the fact that iOS 7 has moved the terminal profiles. A simple symbolic link fixes the problem.
1. Login as root either through SSH or in MobileTerminal.
2. At the prompt, enter the following commands:
The first command creates a symbolic link between /usr/share/terminfo/78, where "top" expects to find the xterm terminal profiles, and their actual location at /usr/share/terminfo/x. The second command changes your terminal setting from xterm-256color to xterm-color for better compatibility.
That's it. You can now run "top."
But if you've tried to run "top" in iOS 7, you have probably seen an error like this:
Code:
Error opening terminal: xterm-256color
The issue is caused by the fact that iOS 7 has moved the terminal profiles. A simple symbolic link fixes the problem.
1. Login as root either through SSH or in MobileTerminal.
2. At the prompt, enter the following commands:
Code:
ln -s x /usr/share/terminfo/78
export TERM=xterm-color
That's it. You can now run "top."