Re: Wee editor 0.36
- Posted by K_D_R Nov 06, 2015
- 2045 views
Also, run in terminal fails with mate-terminal since cmd needs quotes: mate-terminal -e "eui /home/irv/test0.ex"
Several console programs will not function correctly if the terminal emulator does not have the capability to hold the terminal open when command exits, like the gnome-terminal. Even the gnome-terminal won't run the demo program "where.ex" correctly.
Perhaps the Set Terminal Emulator routine should have an argument field for each terminal which the user can edit and which can be saved to Wee.conf file.
Also, I think having a menu option to run a preferred terminal emulator is nice to have:
-- file: ui_gtk.e -- in routine add(runmenu, { --after: createmenuitem("Set Terminal Emulator...", "RunSetTerminal"), -- insert: createmenuitem("Run Terminal Emulator", "RunStart"), -- -- in function RunStart(atom ctl) -- after: elsif equal(lbl, "Translate") then system(cmd & get_eu_bin("euc") & ' ' & quote_spaces(file_name)) -- insert: -- compress the translated executable, -- if upx is found in PATH if absolute_path(locate_file("upx")) then cmd = filebase(file_name) system("upx " & cmd) end if elsif equal(lbl, "Run Terminal Emulator") then cmd = terminal_program[1..length(terminal_program)-2] system(cmd)
Oh, on my system while Translating/Compiling the process is reported in a terminal emulator window and the editor screen turns to a dark shade and cannot be used until compilation is complete. I actually prefer being able to monitor the process. But I suppose some folks would prefer to have translation/compilation done in the background which would allow them to move on to other tasks.
Regards, Ken Rhodes

