zeb (ping me on replies)
How to make ffi bindings to termux api
I want to use it directly in a programming language rather than the shell interface in a shell script.
Is it possible to do? I used the file command on the termux-api file and it said it was a shared object.
I'm hoping someone can give me some pointers on doing it. Can I interface with it through a C FFI? If it's java, do I need to install a jre to use it?
15 replies
cannot compile tur - on - device packages in my tur environment
I followed the directions on the TUR packages repo and I'm not able to build the hello world sample sample package from the tur-on-device folder. It says that it cannot find that package.
I'm specifically looking to get the arm build environment working so that I can create a package that I can install on my phone.
13 replies
Help creating a package which requires a host build
I'm trying to create a package for chibi scheme for termux. Would someone be willing to help me do that?
I'm having trouble because scheme needs to bootstrap itself: I need to run the scheme executable to finish building it. But I'm building in my desktop and the host architecture is different from what's on my phone.
Here's what I've got so far. I'm comparing my build script to the one for guile scheme since it probably has to do some bootstrapping too.
Right now I turned on an option to have it build a version for the host machine and the build is finishing but whatever is inside the
package is built for my host machine. That's not what I want.
22 replies
Trying to build a custom package and the build script doesn't think the directory exists
I'm trying to build a new package. Just to make sure I understand how things work I copied an existing package to a new folder in the packages directory. I'm trying to build it using build package and I get the error "$package_name seems to be a path but is not a directory".
I can go into the directory, it shows up in ls, I can stat the directory, the directory has all the same permissions as the original, and the same owner and group.
2 replies
emacs menu doesn't work with touch controls
Has anyone managed to get the menu in emacs working with touch controls? In my experience while I can tap on the initial buttons in the menu, the rest I have to navigate by keyboard.
I can navigate the menu using just the mouse on my desktop, so I have a feeling this is a problem with touch controls. Perhaps the menu makes the assumption that the pointer has to hover over the item first before it can be clicked. It makes sense of the menu's current behavior: when I tap on it, it activates what's highlighted which is not what is tapped.
6 replies
Compiling treesitter parsers
I'm trying to compile treesitter parsers without installing clang or gcc on my phone. Has anyone else managed to do this?
I've tried two approaches so far: tiny C compiler on my phone and cross compiling from my desktop for my phone. I'm running into roadblocks with both. So far the problem has been missing headers.
- With TCC, I'm missing the
wctype.h
header. There may be others, but that's as far as compilation gets.
- With the arm toolchain in the termux-packages docker container, it's missing stdlib.h
.25 replies
Can I set the mime type of my clipboard content?
If you're familiar with xclip, I need the functionality of it's
-t
flag, which set the mime type of some data. I'd like to do this without using X, so that eliminates installing xclip.9 replies
neovim segfaults after dismissing and reopening onscreen keyboard
If I open a particular file in neovim, scroll to the very last line, minimize termux and then open it, neovim segfaults. Consistently. I eliminated my configs as a reason.
What about dismissing and reopening the virtual keyboard that could cause a segfault? Is it possible to recreate those conditions on a PC? This is my main ask. I want to figure out if this is problem belongs to neovim, termux, or both.
Steps to reproduce:
Use the virtual keyboard for this.
1. Paste into termux:
curl -s https://termbin.com/2q2fq | nvim -u NONE -c "set linebreak"
(You can copy the command from the 1st comment for convenience)
2. Type G$
(move the cursor to the end of the last line in the file)
3. Dismiss the virtual keyboard (open the side menu and hit "keyboard")
4. Bring the virtual keyboard back up (repeat prior step).
It looks like the bug is caused by the last line being wrapped and partially offscreen. So your terminal dimensions have to allow that.
Environment information:
Neovim version: 0.8.3
Termux version: 0.118.0
Android Version: 10
Terminal dimensions: 35 cols × 14 lines. (This has to do with line wrapping, if the line doesn't wrap, it won't work.)
Edit 1: Simplified reproduction steps. You don't have to paste commands into neovim anymore.
Edit 2: Added environment information section.
Edit 3: Changed mentions of suspending termux to dismissing the keyboard.31 replies