Historical forum-msg-id-131848-edit, Revision 1

Original date:2018-01-18 17:08:12 Edited by: Senator Subject: Shian Lee's Unicode/Utf8 editor, "edu.ex" Tricks and Tips

Version 2.0 of edu.ex for Euphoria 3.1.1 is available in Lee's lib2 library: Download: lib2

Very interesting Euphoria 3.1.1 library "upgrade" package with a nice installation program. Lee has added a number of neat enhancements to edu.ex check it out!

You probably would like to add the following code at the top of the edu.ex source code file just after the include statements:

-- patch to fix Linux screen positioning 
-- from euphoria 4.x ed.ex, by John Brown, I think 
procedure get_real_text_starting_position() 
    sequence sss = "" 
    integer ccc 
    puts(1, 27&"[6n") 
    while 1 do 
	ccc = get_key() 
	if ccc = 'R' then 
	    exit 
	end if 
	if ccc != -1 then 
	    sss &= ccc 
	end if 
    end while 
    sss = sss[3..$] 
    sequence aa, bb 
    aa = value(sss[1..find(';', sss)-1]) 
    bb = value(sss[find(';', sss)+1..$]) 
    position(aa[2], bb[2]) 
end procedure 
ifdef LINUX then 
    get_real_text_starting_position() 
end ifdef 
Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu