Re: [dev] dvtm - get list of terminals

2009-12-11 Thread Artur Skonecki
Thanks for the tips guys. I understand it is suckless software and you try to keep the code tiny and clean. What about creating a subpage at http://www.brain-dump.org/projects/dvtm/ with all sort of useful snippets? If there was such page, users wouldn't have to reinvent the wheel. Cheers 2009/12

Re: [dev] dvtm - get list of terminals

2009-12-11 Thread Claudio M. Alessi
Or just use a command like the following: for P in $(pgrep -P $(pgrep -n dvtm)) ; do ps x -o ppid,tty |grep ^$P ; done This will works with the first instance of dvmt found, though it's extremely easy to make a script which handles all running instances. Hope this helps. Regards, Clau

Re: [dev] dvtm - get list of terminals

2009-12-11 Thread Marc Andre Tanner
On Sun, Dec 06, 2009 at 08:22:10PM +0100, Artur Skonecki wrote: > Hi, > Is it possible to get a list of terminals in dvtm? > I would like to use it in dvtm-status script. You could add a new command to the cmdfifo interface but you would still need a way to get the information back. You would th

[dev] dvtm - get list of terminals

2009-12-06 Thread Artur Skonecki
Hi, Is it possible to get a list of terminals in dvtm? I would like to use it in dvtm-status script. Regards -- Artur Skonecki http://adb.cba.pl