mikshaw
Group: Members
Posts: 4856
Joined: July 2004 |
|
Posted: Jan. 13 2005,19:59 |
|
Using Bash...I don't know anything else. Separating the 3 parts is no problem. As I said, the conversion of individual lines has been working for a while. It's the splitting up of submenus that has me stumped, particularly when there is a submenu within a submenu:
Code Sample | [submenu] (submenu1) [exec] (something) {some command} [submenu] (submenu 2) [exec] (something) {some command} [exec] (something) {some command} [end] [exec] (something) {some command} [exec] (something) {some command} [end]
|
As you can see, submenu1 and submenu2 are both terminated by the same string. I just don't know how to determine which submenu is being terminated. I'm thinking of using a bunch of temp files. If it reads a '[submenu]' it starts writing to a file until it reads '[end]' UNLESS it reads another '[submenu]' first, in which case it will write to a second file until it reads '[end]' UNLESS it reads another '[submenu]'. Then it continues writing to the previous file until it reads '[end]' UNLESS it reads another '[submenu]'...etc.... Then I may be able to read those temp files back as I'm building the Ion submenus.
To me this is like thinking about how big the universe is, and how tiny atoms are....i follow it so far until my heads spins, and then I have to stop. I'll get it eventually, but it's one of those situations where I have to stay calm, with no distractions, and stay aware of how all the pieces connect. Just writing that last paragraph was beginning to confuse me.
I'll read your pseudo script over a few more times...I'm not completely following it at the moment. Thank you.
I've already got Ion3 working well in DSL...there's just this last part I want to add in order to keep up with fluxbox menu changes.
-------------- http://www.tldp.org/LDP/intro-linux/html/index.html
|