Re: console routines
- Posted by jimcbrown (admin) Nov 12, 2014
- 1321 views
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