From: Harvie Date: Mon, 1 Nov 2010 04:27:01 +0000 (+0100) Subject: DreamStrobe: Added experimental interactive (slave) mode X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=1de77ebfaeed512dead17884b4f5e1a62f9dcc0d;p=mirrors%2FPrograms.git DreamStrobe: Added experimental interactive (slave) mode --- diff --git a/c/dreammachine/PKGBUILD b/c/dreammachine/PKGBUILD index 5b71cd3..9d8eb35 100644 --- a/c/dreammachine/PKGBUILD +++ b/c/dreammachine/PKGBUILD @@ -3,7 +3,7 @@ # You can also contact me on http://blog.harvie.cz/ pkgname=dream-strobe -pkgver=3 +pkgver=4 pkgrel=1 pkgdesc="Stroboscope implementation for GNU/Linux console. Also called 'Dream Machine' or 'Strobe'. Can be used to alternate state of consciousness by affecting brainwave frequencies. Use only at your own risk!" arch=('any') @@ -11,7 +11,7 @@ license=('GPL') url="http://aur.archlinux.org/packages.php?ID=27012" depends=() source=('strobe.c') -md5sums=('8df74539c4f79aaf54a8a6d4423e3b4a') +md5sums=('a23d214d2934cb5814e10bc9a2b92aa4') build() { mkdir -p ${pkgdir}/usr/bin diff --git a/c/dreammachine/strobe b/c/dreammachine/strobe index bcfc89e..80134d3 100755 Binary files a/c/dreammachine/strobe and b/c/dreammachine/strobe differ diff --git a/c/dreammachine/strobe.c b/c/dreammachine/strobe.c index bfc40a4..1c2c797 100644 --- a/c/dreammachine/strobe.c +++ b/c/dreammachine/strobe.c @@ -48,6 +48,7 @@ int main(int argc, char *argv[]) { fputs(state_a, stdout); fflush(stdout); usleep(half_interval); + if(argc > 2) getchar(); //interactive strobe fputs(state_b, stdout); fflush(stdout); usleep(half_interval);