1. video_config() Returning Wrong Information

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() 
new topic     » topic index » view message » categorize

2. Re: video_config() Returning Wrong Information

euphoric said...

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?

new topic     » goto parent     » topic index » view message » categorize

3. Re: video_config() Returning Wrong Information

DerekParnell said...

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?

new topic     » goto parent     » topic index » view message » categorize

4. Re: video_config() Returning Wrong Information

euphoric said...
DerekParnell said...

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.

new topic     » goto parent     » topic index » view message » categorize

5. Re: video_config() Returning Wrong Information

DerekParnell said...

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? smile

new topic     » goto parent     » topic index » view message » categorize

6. Re: video_config() Returning Wrong Information

euphoric said...

Cool! How do I build docs from sources? smile

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

new topic     » goto parent     » topic index » view message » categorize

7. Re: video_config() Returning Wrong Information

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)... 

new topic     » goto parent     » topic index » view message » categorize

8. Re: video_config() Returning Wrong Information

euphoric said...

'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. tongue

Matt

new topic     » goto parent     » topic index » view message » categorize

9. Re: video_config() Returning Wrong Information

mattlewis said...

Sheesh. You people and your crazy turtle crutches. Install a real svn client already. tongue

HAHAHAHA! grin

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? smile

new topic     » goto parent     » topic index » view message » categorize

10. Re: video_config() Returning Wrong Information

euphoric said...

How do I build docs from sources? smile

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 


  1. Set the DOCS folder as the current folder
  2. Make sure that there is a HTML folder in the DOCS folder.
  3. Run the batch file above
  4. Updated HTML is now in the DOCS\HTML folder.
new topic     » goto parent     » topic index » view message » categorize

11. Re: video_config() Returning Wrong Information

DerekParnell said...
euphoric said...

How do I build docs from sources? smile

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 


  1. Set the DOCS folder as the current folder
  2. Make sure that there is a HTML folder in the DOCS folder.
  3. Run the batch file above
  4. 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

new topic     » goto parent     » topic index » view message » categorize

12. Re: video_config() Returning Wrong Information

euphoric said...

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

new topic     » goto parent     » topic index » view message » categorize

13. Re: video_config() Returning Wrong Information

jeremy said...
DerekParnell said...
euphoric said...

How do I build docs from sources? smile

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 


  1. Set the DOCS folder as the current folder
  2. Make sure that there is a HTML folder in the DOCS folder.
  3. Run the batch file above
  4. 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.

new topic     » goto parent     » topic index » view message » categorize

14. Re: video_config() Returning Wrong Information

DerekParnell said...

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

new topic     » goto parent     » topic index » view message » categorize

15. Re: video_config() Returning Wrong Information

euphoric said...
mattlewis said...

Sheesh. You people and your crazy turtle crutches. Install a real svn client already. tongue

HAHAHAHA! grin

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? smile

Yes. Before committing I typically do:

$ svn st -q 
$ svn diff | less 
The 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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu