Re: Asking for help with Phix program under Linux

new topic     » goto parent     » topic index » view thread      » older message » newer message
irv said...

/home/irv/phix/builtins/pscreen.e:144 in procedure initI() 
attempt to divide by 0 
So ... there appears to be a problem with pscreen.e, it prevents me from going any further with your program.

Oh dear, there's nothing particularly magical about that, just massive big chunks of completely missing code.
(Does anyone have any ideas for implementing video_config() and friends on Linux??)

Anyway, I renamed trim() as trimm() in 9 places, you may or may not have to do the same:

hypatia\source\hy-lib.e:329  li = trim(li[1..$-1]) 
hypatia\source\hy-lib.e:439    in = trim(in) 
hypatia\source\hy.exw:176   t = trim(t) 
hypatia\source\hy.exw:322   rline = trim(rline) 
hypatia\source\hy.exw:438   cline = trim(cline) 
hypatia\source\hy.exw:473  line = trim(line) 
hypatia\source\rslib42.e:18 -- function trim(object s) 
hypatia\source\rslib42.e:95 global function trimm(object s) 
hypatia\source\rslib42.e:109            s[j] = trim(s[j]) 

to work around video_config() being completely absent on linux, I changed hypatia\source\rslib42.e lines 20..32:

--  object scrn                      -- for calling video_config() 
--  scrn = video_config() 
--  in_max = scrn[10] - length(prompt) - 1 
    in_max = iff(platform()=WINDOWS?video_config()[10]:80) - length(prompt) - 1 

and hypatia\source\hy-lib.e lines 410..463:

--  object scrn -- for calling video_config() 
--      scrn = video_config() 
--      cols = scrn[10] 
        cols = iff(platform()=WINDOWS?video_config()[10]:80) 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu