Re: console routines
- Posted by Shian_Lee Nov 13, 2014
- 1381 views
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.
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!