TermuC is a simple C/C++ IDE backed on Termux. Based on MrIkso/CodeEditor
This app use com.termux.RUN_COMMAND
to call Termux to run command, and run clangd
language server with netcat
, which builds an insistant I/O channel, offering functions as diagnosing and compilation.
- Highighting
- Autocompletion
- Formatting
- Diagnose
- Compile flags
- Dark mode
- Debug
- Project manage
- Workspace
To support the full functions as an IDE, please follow the setup instruction.
- Install Termux(Github Releases or F-Droid) first.
- Run
pkg install clang
to install the clang compiler & clangd language server. - See RUN_COMMAND Intent to enable calls from 3rd-party apps.
- Then install TermuC.
Otherwise you can also copy these commands and paste to Termux to initialize Termux automatically.
echo Setup storage
termux-setup-storage
DATA=package:com.termux
echo -n Setup draw over apps \(Press Enter\);read _
am start -a android.settings.action.MANAGE_OVERLAY_PERMISSION -d $DATA>/dev/null
echo -n Setup ignore battery optimizations \(Press Enter\);read _
am start -a android.settings.IGNORE_BATTERY_OPTIMIZATION_SETTINGS>/dev/null
echo -n Setup Startup \& Background pop-ups permissions \(Press Enter\);read _
am start -a android.settings.APPLICATION_DETAILS_SETTINGS -d $DATA>/dev/null
echo Setup allow-external-app to \`true\'
fl=/data/data/com.termux/files/home/.termux/termux.properties
if [ -f $fl ];then
awk '/^#/{print;next }/^\s*allow-external-apps/{gsub(/allow-external-apps.*/,"allow-external-apps=true");found=1}{print $0}END{if(!found)print "allow-external-apps=true"}' $fl>$TMPDIR/a.tmp && mv $TMPDIR/a.tmp $fl
else
mkdir -p `dirname $fl`
echo 'allow-external-apps=true'>$fl
fi
echo Install Clang
pkg i clang -y
apt autoremove --purge
apt clean
echo ok