android 에서 htop 쓰기
CyanogenMod 에서 htop 을 갖다 쓰면 된다.
아래 두개를 빌드해서 넣으면 된다.
빌드가 안되면 어디 다른데서 빌드해서 카피해도 된다.
https://github.com/CyanogenMod/android_external_htop
CyanogenMod/android_external_htop
Contribute to CyanogenMod/android_external_htop development by creating an account on GitHub.
github.com
https://github.com/CyanogenMod/android_external_libncurses
CyanogenMod/android_external_libncurses
NCurses terminal display library ported to android - CyanogenMod/android_external_libncurses
github.com
htop 이 실행이 안 되면
$ htop
Error opening terminal: xterm.
터미널 지정이 안되서 그렇다.
export TERMINFO=/etc/terminfo
export TERM=linux
이런식으로 지정하면 되는데 저 terminfo 조차 없는 경우가 있다.
이 파일을 압축 풀어서 어디든 sdcard도 된다.
집어넣고
linux 파일이 있는 경로를 TERMINFO 로 지정해준다.
/sdcard/terminfo/l/linux 이렇게 집어넣었다면 아래와 같이 해준다.
export TERMINFO=/sdcard/terminfo/l
그럼 htop 이 된다.