LinHES Forums http://forum.linhes.org/ |
|
mplayer lircrc question http://forum.linhes.org/viewtopic.php?f=17&t=15505 |
Page 1 of 1 |
Author: | Too Many Secrets [ Mon Jun 04, 2007 11:04 pm ] |
Post subject: | mplayer lircrc question |
OK, dumb question here. I want to cycle the audio tracks in mplayer from my remote. The keyboard key for this is #. When I put this in the lircrc file it get's ignored (ie comment) I tried the # in quotes as in "#", reboot, still nothing. How do I get the # to be recognized in lircrc? TIA |
Author: | slowtolearn [ Tue Jun 05, 2007 5:42 am ] |
Post subject: | Re: mplayer lircrc question |
Too Many Secrets wrote: OK, dumb question here. I want to cycle the audio tracks in mplayer from my remote. The keyboard key for this is #. When I put this in the lircrc file it get's ignored (ie comment) I tried the # in quotes as in "#", reboot, still nothing. How do I get the # to be recognized in lircrc? For special characters to be taken literally by shell you need to escape them. Not sure if lircd works the same way, but try \# (backslash pound).
TIA |
Author: | Too Many Secrets [ Wed Jun 06, 2007 11:03 pm ] |
Post subject: | Re: mplayer lircrc question |
slowtolearn wrote: Too Many Secrets wrote: OK, dumb question here. I want to cycle the audio tracks in mplayer from my remote. The keyboard key for this is #. When I put this in the lircrc file it get's ignored (ie comment) I tried the # in quotes as in "#", reboot, still nothing. How do I get the # to be recognized in lircrc? For special characters to be taken literally by shell you need to escape them. Not sure if lircd works the same way, but try \# (backslash pound).TIA Well I've tried \# , '#' and "#" still nothing. Been reading here, but still can't figure this out. Still looking... |
Author: | tjc [ Thu Jun 07, 2007 12:21 am ] |
Post subject: | |
The lirc documentation has the answers: http://www.lirc.org/html/configure.html#lircrc_format See the bit under the "config" keyword. For button names there is no reason to use special characters, simply a description like "Star" or "Pound". |
Author: | Too Many Secrets [ Tue Jul 03, 2007 6:34 pm ] |
Post subject: | |
I'm getting back into this and I still can't make this work. I want to be able to cycle the audio tracks in a .vob file from my remote. Using a keyboard I can press <Shift + 3> making the # but I can't translate this into the lircrc file. I just need the "config = xxxx" line. I've read all the above pages and it's still not making it thru to my brain how to do this. If any kind soul could take pity? Code: begin
prog = mplayer button = BLUE #cycle audio tracks config = end |
Author: | tjc [ Tue Jul 03, 2007 7:47 pm ] |
Post subject: | |
Running: Code: man ascii will show you the numeric values values for various ASCII characters. Pound sign '#' is 043 octal (0x23 hexadecimal). Therefore to get that character you would use the backslash '\' "escape convention" described in the LIRC file format page like this: Code: begin
prog = mplayer button = BLUE #cycle audio tracks config = \043 end They describe a lot of shortcuts for common control characters (for example \r \M \x0d and \015 all mean the same thing) but octal is the most general form. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |