Hi,
I am using SCREEN() to retrieve some characters from the display in console mode (80x25). I am using double-buffering, too (that is I output text to a "work" video page and I keep displaying the "active" video page).
The problem I got is that SCREEN(x,y) returns me the character which is on the active (displayed) page, not the work page.
Is it the expected behavior of SCREEN in console mode?
If so, is there any other way I could retrieve some characters from the "work" video page? Unfortunately, I can't make a PCOPY each time I have to retrieve a char, as it makes my display flickering :-(
SCREEN() doesn't return the character of the work video page
Re: SCREEN() doesn't return the character of the work video
Maybe a bug (I don't use it) ...Fox wrote:that SCREEN(x,y) returns me the character which is on the active (displayed) page, not the work page. Is it the expected behavior of SCREEN in console mode?
As usual, I could solve your problem the low level way with inline ASM ;-)If so, is there any other way I could retrieve some characters from the "work" video page?
Hi,Laaca wrote:Question is position 1,1 of videopage 1.
Did you try this?
a = screen (1,1+maxline)
(in standard 80x25 resolution the maxline=25, of course)
I didn't try it but it could work.
The idea is interesting :-)
Unfortunately, it doesn't work. A SCREEN(1+maxline, 1) still reports the same thing than SCREEN(1,1)...
However, it was worth trying ;-)
-
- Posts: 612
- Joined: Jun 15, 2005 13:22
- Location: Upstate NY
- Contact:
Re: SCREEN() doesn't return the character of the work video
Well... If you could, it would be really nice of you :-PDOS386 wrote:As usual, I could solve your problem the low level way with inline ASM ;-)
I'll try to code something ... just a question of time.
EDIT : Done ! http://www.freebasic.net/forum/viewtopic.php?t=11832
EDIT : Done ! http://www.freebasic.net/forum/viewtopic.php?t=11832