1. video_config() Returning Wrong Information
- Posted by euphoric (admin) Aug 18, 2009
- 1518 views
I'm running Windows XP Professional SP3. This program should be printing 25 but is printing 300 for me.
include std/graphics.e include std/console.e sequence screen screen = video_config() ?screen[VC_LINES] wait_key()
2. Re: video_config() Returning Wrong Information
- Posted by DerekParnell (admin) Aug 18, 2009
- 1523 views
I'm running Windows XP Professional SP3. This program should be printing 25 but is printing 300 for me.
include std/graphics.e include std/console.e sequence screen screen = video_config() ?screen[VC_LINES] wait_key()
What is being shown is the number of lines in the console buffer. This is intended.
Are you expecting to see the number of lines in the current console window size instead?
3. Re: video_config() Returning Wrong Information
- Posted by euphoric (admin) Aug 18, 2009
- 1499 views
What is being shown is the number of lines in the console buffer. This is intended.
Are you expecting to see the number of lines in the current console window size instead?
Do the docs for video_config() need to be updated?
Yes, I was expecting to get the value from the current console window size. Is there another function I should use for that?
4. Re: video_config() Returning Wrong Information
- Posted by DerekParnell (admin) Aug 18, 2009
- 1458 views
What is being shown is the number of lines in the console buffer. This is intended.
Are you expecting to see the number of lines in the current console window size instead?
Do the docs for video_config() need to be updated?
Yes, I was expecting to get the value from the current console window size. Is there another function I should use for that?
I've updated the docs to make them more explicit and clear about what is being returned.
Also, I've added two new fields to the output of video_config() that return the current screen size in terms of lines and columns. This will be available in the next beta release.
5. Re: video_config() Returning Wrong Information
- Posted by euphoric (admin) Aug 18, 2009
- 1449 views
- Last edited Aug 19, 2009
I've updated the docs to make them more explicit and clear about what is being returned.
Also, I've added two new fields to the output of video_config() that return the current screen size in terms of lines and columns.
Cool! How do I build docs from sources?
6. Re: video_config() Returning Wrong Information
- Posted by jeremy (admin) Aug 18, 2009
- 1436 views
- Last edited Aug 19, 2009
Cool! How do I build docs from sources?
Assuming your SVN checkout is in C:\eu_dev, you can
C:\eu_dev> cd docs C:\eu_dev\docs> jam manual ... lots of output ... ... lots of time ... C:\eu_dev\docs> html\eu400_0001.html
Jeremy
7. Re: video_config() Returning Wrong Information
- Posted by euphoric (admin) Aug 18, 2009
- 1416 views
- Last edited Aug 19, 2009
Jeremy, here's what happens when I do that:
C:\euphoria\docs>set JAM_TOOLSET=WATCOM C:\euphoria\docs>jam manual Compiler is Watcom C/C++ ...found 2 target(s)... ...updating 2 target(s)... GetEuDoc get_eudoc 'svn' is not recognized as an internal or external command, operable program or batch file. 'svn' is not recognized as an internal or external command, operable program or batch file. svn co http://rapideuphoria.svn.sourceforge.net/svnroot/rapideuphoria/tools/eudoc/trunk ..\source\eudoc svn co http://rapideuphoria.svn.sourceforge.net/svnroot/rapideuphoria/tools/creole/trunk ..\source\eudoc\creole ...failed GetEuDoc get_eudoc ... ...skipped manual for lack of get_eudoc... ...failed updating 1 target(s)... ...skipped 1 target(s)...
8. Re: video_config() Returning Wrong Information
- Posted by mattlewis (admin) Aug 18, 2009
- 1416 views
- Last edited Aug 19, 2009
'svn' is not recognized as an internal or external command, operable program or batch file. svn co http://rapideuphoria.svn.sourceforge.net/svnroot/rapideuphoria/tools/eudoc/trunk ..\source\eudoc svn co http://rapideuphoria.svn.sourceforge.net/svnroot/rapideuphoria/tools/creole/trunk ..\source\eudoc\creole
Sheesh. You people and your crazy turtle crutches. Install a real svn client already.
Matt
9. Re: video_config() Returning Wrong Information
- Posted by euphoric (admin) Aug 18, 2009
- 1436 views
- Last edited Aug 19, 2009
Sheesh. You people and your crazy turtle crutches. Install a real svn client already.
HAHAHAHA!
I like the Turtle commit process because I can double-click on the list of files changed and see exactly what I changed (a diff thingie). When I commit from my Linux server, IT SUXXORZ!!! Is there something I'm missing about the commandline interface for svn ci?
10. Re: video_config() Returning Wrong Information
- Posted by DerekParnell (admin) Aug 19, 2009
- 1422 views
How do I build docs from sources?
Here is how I do it ...
I have a .bat file called "mybuild.bat" in the DOCS folder. It looks like this ...
@ echo off eui ..\..\tools\eudoc\trunk\eudoc.ex -v -a manual.af -o euphoria.txt eui ..\..\tools\creole\trunk\creolehtml.ex -A=ON -t=template.html -ohtml euphoria.txt
- Set the DOCS folder as the current folder
- Make sure that there is a HTML folder in the DOCS folder.
- Run the batch file above
- Updated HTML is now in the DOCS\HTML folder.
11. Re: video_config() Returning Wrong Information
- Posted by jeremy (admin) Aug 19, 2009
- 1406 views
How do I build docs from sources?
Here is how I do it ...
I have a .bat file called "mybuild.bat" in the DOCS folder. It looks like this ...
@ echo off eui ..\..\tools\eudoc\trunk\eudoc.ex -v -a manual.af -o euphoria.txt eui ..\..\tools\creole\trunk\creolehtml.ex -A=ON -t=template.html -ohtml euphoria.txt
- Set the DOCS folder as the current folder
- Make sure that there is a HTML folder in the DOCS folder.
- Run the batch file above
- Updated HTML is now in the DOCS\HTML folder.
That still requires that eudoc and creole to be downloaded. If you download these and put them in eu_dev/source/eudoc and eu_dev/source/eudoc/creole then jam manual will work. The command did not work because the SVN command line program was not installed.
The .bat file you gave to him will not work either as he does not have EuDoc or CreoleHTML.
Jeremy
12. Re: video_config() Returning Wrong Information
- Posted by jeremy (admin) Aug 19, 2009
- 1433 views
Jeremy, here's what happens when I do that:
Things would work a whole lot better if you would simply install the command line SVN client. You don't have to use it, just install it. This let's us script SVN co's, commits, etc... It will not mess up your GUI interface.
Download it at Setup-Subversion-1.6.4.msi, install and make sure it's in your path. Then re-run the commands that I gave you and all will work like a charm.
Jeremy
13. Re: video_config() Returning Wrong Information
- Posted by DerekParnell (admin) Aug 19, 2009
- 1381 views
How do I build docs from sources?
Here is how I do it ...
I have a .bat file called "mybuild.bat" in the DOCS folder. It looks like this ...
@ echo off eui ..\..\tools\eudoc\trunk\eudoc.ex -v -a manual.af -o euphoria.txt eui ..\..\tools\creole\trunk\creolehtml.ex -A=ON -t=template.html -ohtml euphoria.txt
- Set the DOCS folder as the current folder
- Make sure that there is a HTML folder in the DOCS folder.
- Run the batch file above
- Updated HTML is now in the DOCS\HTML folder.
That still requires that eudoc and creole to be downloaded. If you download these and put them in eu_dev/source/eudoc and eu_dev/source/eudoc/creole then jam manual will work. The command did not work because the SVN command line program was not installed.
The .bat file you gave to him will not work either as he does not have EuDoc or CreoleHTML.
Yeah ... so ...??? I know it didn't work for euphoric because SVN command line utility wasn't installed. That is not my point. I just gave an alternative that doesn't require that tool or 'jam'. Is that so bad??? The 'jam' method won't work either if eudoc and/or creolehtml isn't installed.
I suppose I should have mentioned that I'm assuming that the whole OpenEuphoria repository had been downloaded and kept up to date - by any method that he chooses to do that by. mea maxima culpa.
14. Re: video_config() Returning Wrong Information
- Posted by jeremy (admin) Aug 19, 2009
- 1376 views
Yeah ... so ...??? I know it didn't work for euphoric because SVN command line utility wasn't installed. That is not my point. I just gave an alternative that doesn't require that tool or 'jam'. Is that so bad??? The 'jam' method won't work either if eudoc and/or creolehtml isn't installed.
Jam.exe is included with Euphoria SVN co, however, not so with the unix systems. I was merely saying that that jam failed to work because eudoc and creole didn't exist, the same would have happened for your batch file, that's all, unless they had the whole root repo checked out. I guess I've never seen that done before.
Jeremy
15. Re: video_config() Returning Wrong Information
- Posted by mattlewis (admin) Aug 19, 2009
- 1353 views
Sheesh. You people and your crazy turtle crutches. Install a real svn client already.
HAHAHAHA!
I like the Turtle commit process because I can double-click on the list of files changed and see exactly what I changed (a diff thingie). When I commit from my Linux server, IT SUXXORZ!!! Is there something I'm missing about the commandline interface for svn ci?
Yes. Before committing I typically do:
$ svn st -q $ svn diff | lessThe first command shows me which files have changed, been added, deleted, etc. And then I get the diff output from which I can scroll and search. Your server probably has less installed.
Take a look at man less. There's really a lot that it can do beyond being a simple console pager.
Matt