I am using sublime-text-3 and gfortran. I can compile,build,run with one button, and see the results in Panel that is down, with this build system:
{ "target": "terminus_exec", "shell_cmd":"gfortran "${file}" -o "${file_base_name}" && "./${file_base_name}"", "working_dir":"${file_path}", "auto_close":false, "selector":"source.f90,source.f95,source.f77,source.f", "focus":"true", }
Also can open in new terminal my building results with this:
{ "cmd" : [" /usr/bin/gfortran ${file_name} -o ${file_base_name} && ./${file_base_name}"], "selector" : "source.f90,source.f95,source.f77,source.f", "working_dir" : "${file_path}", "shell" : true, "variants": [ { "name": "Run", "shell": true, "cmd": ["xterm -e 'bash -c "${file_path}/${file_base_name};echo;echo; echo Press ENTER to continue; read line;exit; exec bash"'"] } ], }
, but i would like to run and see my results in the already existed, Login Shell in the right side. This Login Shell i don’t want to open & close each time i execute my code.
That i want is similar with a Geany operation, where i can compile,build,execute my fortran code with 3 buttons, and see my results in the terminal that is enabled downside.
In Geany:
manuel@9:~/fortran$ /bin/sh /tmp/geany_run_script_P00U00.sh
the number is 1821
(program exited with code: 0)
manuel@9:~/fortran$
Thank you!