Re: [Freedos-user] Dialog 1.1 for DOS
On Fri, Feb 27, 2009 at 12:10 PM, Fabrício Ceolin ceo...@ulevel.com wrote: Hi, How can I get modified cells from dialog using --form under dos? ex: dialog --title aaa --form choice 50 78 100 Form1 1 0 1 30 55 256 Form2 2 0 MG9310077 2 30 55 256 If you are trying to do complex scripts using dialog, I would recomment using the DJGPP port of BASH because it provides much more powerful scripting capabilities than batch files. If you are using FreeCOM, you can use set /E VAR=command line and arguments to capture the output of dialog into a variable. In dialog's output, the two form entries will be printed to stdout, separated by a newline. To separate these into two environment variables in batch, here's one possiblity (which requires head and tail; common unix utilities for which there are several dos ports and clones): dialog --stdout options... %TEMP%\temp.var set /E VAR1=head -n 1 %TEMP%\temp.var set /E VAR2=tail -n 1 %TEMP%\temp.var Of course there are probably many utilities out there that will output specific lines in files to stdout; head and tail are just the easiest examples that come to mind at the moment -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Dialog 1.1 for DOS
Hi, Thanks!!! But when I try under freedos or under bash the command: dialog --title aaa --form choice 50 78 100 Form1 1 0 1 30 55 256 %temp%/temp.var all stdout, included ncurses interfaces, goes to file and the screen hangs awaiting for hidden Ok. There are any way to solve this? On Sat, Feb 28, 2009 at 7:19 AM, Blair Campbell blaird...@gmail.com wrote: On Fri, Feb 27, 2009 at 12:10 PM, Fabrício Ceolin ceo...@ulevel.com wrote: Hi, How can I get modified cells from dialog using --form under dos? ex: dialog --title aaa --form choice 50 78 100 Form1 1 0 1 30 55 256 Form2 2 0 MG9310077 2 30 55 256 If you are trying to do complex scripts using dialog, I would recomment using the DJGPP port of BASH because it provides much more powerful scripting capabilities than batch files. If you are using FreeCOM, you can use set /E VAR=command line and arguments to capture the output of dialog into a variable. In dialog's output, the two form entries will be printed to stdout, separated by a newline. To separate these into two environment variables in batch, here's one possiblity (which requires head and tail; common unix utilities for which there are several dos ports and clones): dialog --stdout options... %TEMP%\temp.var set /E VAR1=head -n 1 %TEMP%\temp.var set /E VAR2=tail -n 1 %TEMP%\temp.var Of course there are probably many utilities out there that will output specific lines in files to stdout; head and tail are just the easiest examples that come to mind at the moment -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user -- Fabrício Ceolin ulevel.com Diretor Executivo -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Dialog 1.1 for DOS
Hi, I solved under bash, with: dialog --stderr --title aaa --form choice 50 78 100 Form1 1 0 1 30 55 256 2file.answer Thanks! On Sat, Feb 28, 2009 at 4:53 PM, Fabrício Ceolin ceo...@ulevel.com wrote: Hi, Thanks!!! But when I try under freedos or under bash the command: dialog --title aaa --form choice 50 78 100 Form1 1 0 1 30 55 256 %temp%/temp.var all stdout, included ncurses interfaces, goes to file and the screen hangs awaiting for hidden Ok. There are any way to solve this? On Sat, Feb 28, 2009 at 7:19 AM, Blair Campbell blaird...@gmail.comwrote: On Fri, Feb 27, 2009 at 12:10 PM, Fabrício Ceolin ceo...@ulevel.com wrote: Hi, How can I get modified cells from dialog using --form under dos? ex: dialog --title aaa --form choice 50 78 100 Form1 1 0 1 30 55 256 Form2 2 0 MG9310077 2 30 55 256 If you are trying to do complex scripts using dialog, I would recomment using the DJGPP port of BASH because it provides much more powerful scripting capabilities than batch files. If you are using FreeCOM, you can use set /E VAR=command line and arguments to capture the output of dialog into a variable. In dialog's output, the two form entries will be printed to stdout, separated by a newline. To separate these into two environment variables in batch, here's one possiblity (which requires head and tail; common unix utilities for which there are several dos ports and clones): dialog --stdout options... %TEMP%\temp.var set /E VAR1=head -n 1 %TEMP%\temp.var set /E VAR2=tail -n 1 %TEMP%\temp.var Of course there are probably many utilities out there that will output specific lines in files to stdout; head and tail are just the easiest examples that come to mind at the moment -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user -- Fabrício Ceolin ulevel.com Diretor Executivo -- Fabrício Ceolin ulevel.com Diretor Executivo -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Dialog 1.1 for DOS
Hi, How can I get modified cells from dialog using --form under dos? ex: dialog --title aaa --form choice 50 78 100 Form1 1 0 1 30 55 256 Form2 2 0 MG9310077 2 30 55 256 Thanks! On Sun, Feb 15, 2009 at 6:17 AM, Blair Campbell blaird...@gmail.com wrote: Just announcing that I've uploaded my port of Dialog 1.1 for DOS to ibiblio. It is compiled with ncurses and gpm, so it supports mouse. For those of you unfamiliar with it, Dialog is a popular program in unix for adding a TUI interface to shell scripts. The sources and binaries are uploaded to: http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/util/menu/ as dialogx.zip (binary) and dialogs.zip (source) -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user -- Fabrício Ceolin ulevel.com Diretor Executivo -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user