revenge of the kludge

I'm playing with termux-api, which exposes a bunch of Android API things to the termux command-line environment. I'm kind of afraid that I'm going to hack together an app using the command line. Excellent and hilarious and a terrible idea. The kind of procrastination that looks like work.

Read more…

your princess is in another window

I've been playing with tmux for making it possible to do more things from one terminal window. Today I realized that you can type tmux commands in one shell, and affect the contents of other windows. You can send keypresses. I knew from the interactive help (C-b ?) that you can send a pane within a window to a new window, but you can also capture panes from one window in another. The command language is the same that you can type at the C-b : command prompt; you can put them in a file and process (from anywhere) with tmux source.

But the cuteness for now is that I can do

make continuous 2>&1 | tmux splitw -dI &
make serve 2>&1 | tmux splitw -dI &

and have two long-running processes putting their outputs into one window, while I can control them from another.

Update: I learned a nicer way.

Read more…

apps from the shell

The incantation that I was looking for to start an Android app from within the shell is

am start --user 0 -n net.gsantner.markor/net.gsantner.markor.activity.MainActivity

The problem is identifying the name at the back.

Read more…