Euphoria Ticket #904: video_config() is not working on Linux after resizing the terminal.

Shian_Lee said...
jimcbrown said...
Shian_Lee said...

Right now I am using LinuxMint-17 64-bit, Euphoria v4.1.0, and the default MATE Terminal 1.8.0.

include std/console.e 
sequence o, n 
clear_screen() 
o = "" 
n = video_config() 
while 1 do 
   if not equal(o,n) then 
       position(1,1) 
       puts(1, "                                               ") 
       position (1,1) 
       ? n 
       o = n 
   end if 
   n = video_config() 
end while 
 

The code above does not work.

Is it a bug? I have no idea.

I'd say it's a bug.

Shian_Lee said...

It looks like on Linux there is no way to tell the rows/columns after resizing the terminal (same as in DOS after calling system()).

Hmm. What happens if you add text_rows() calls?

include std/console.e 
sequence o, n 
clear_screen() 
o = "" 
text_rows(999) 
n = video_config() 
while 1 do 
   if not equal(o,n) then 
       position(1,1) 
       puts(1, "                                               ") 
       position (1,1) 
       ? n 
       o = n 
   end if 
   text_rows(999) 
   n = video_config() 
end while 
 

After adding text_rows(999) - the code works perfectly! Then I hope this bug can be fixed!

Details

Type: Bug Report Severity: Normal Category: Library Routine
Assigned To: unknown Status: New Reported Release: 4.1.0
Fixed in SVN #: View VCS: none Milestone:

Search



Quick Links

User menu

Not signed in.

Misc Menu