You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NanoDroid/Full/system/xbin/nano

23 lines
415 B
Bash

#!/system/bin/sh
# nano: wrapper to set up and run nano from terminal
# osm0sis @ xda-developers
dir="$(cd "$(dirname "$0")"; pwd)"
if [ "$1" == "--term" ]; then
term=$2;
shift 2;
else
term=xterm
fi
clear # empty the buffer
# correct the terminal size ;
# some OS' don't ship `resize`
resize >/dev/null
[[ -d /system/etc/terminfo ]] && \
export TERMINFO=/system/etc/terminfo
TERM=$term ${dir}/nano.bin $*