Open edrex opened 11 months ago
I expected this to work:
echo "c,Check directory,just check" | hydra /dev/stdin
but it didn't. I'll try to debug it, but I'm tight on time nowadays so if you got some time to check why this doesn't work that would be great
This form works, but there's an issue with calling tcsetattr on stdin:
~/s/g/e/hydra (master)> ./hydra /dev/stdin < hydras/git
g âž” +Git
tcsetattr(): Inappropriate ioctl for device
tcsetattr ICANON: Inappropriate ioctl for device
Git:
F âž” Pull b âž” +Branch d âž” Diff i âž” Init l âž” Log p âž” Push s âž” Status z âž” +Stash
tcsetattr(): Inappropriate ioctl for device
Not sure why the difference between the two forms. The joys of 50yo programming interfaces :)
I guess that's the line that tries to get the width of the window because that's the only function I recall I have used from sys/ioctl.h https://github.com/emad-elsaid/hydra/blob/master/hydra.c#L79
Hi, just found your project, neat!
To make this more useful in scripts, it would be cool if I could pipe choices in, eg
cat ./hydras/* | ./hydra
orAlso