Robofont shell output also inside shell
@bahman @RafaŁ-Buchner @StephenNixon I’ve collected your instructions for running scripts from SublimeText / Atom / VS Code into a new How-To: Using external code editors to run scripts in RoboFont
I hope it’s all correct, please double check when you can. thanks!
bahman last edited by
Thank you Gustavo, the only thing missing for the sublime text part is the code to create the build system. So I would suggest changing the instruction to match that. Because right now your instructions are referring to a file that is missing in your page.
bahman last edited by
btw there is also a Pycharm instruction by @RafaŁ-Buchner :
On Version 3.3b (build 1910091627) if I call
$ echo "print('hello')" > /tmp/foo.py && roboFont -p /tmp/foo.pyI’m seeing nothing either in RoboFont’s output window, in the shell nor in
I do wonder if RoboFont can somehow be configured to redirect stdout and stderr to the shell when in remote scripting mode. Perhaps optionally behind a command line switch, so if people prefer output in the Output window, they can still get that?
if the tool is installed correctly and pointing to the correct RoboFont, it should end up in the output window.
there is no option to send output back to the remote terminal window...
RafaŁ Buchner last edited by RafaŁ Buchner
I figured out a small trick to have an output in the terminal's console:
- in the terminal app I'm going to the dir, where the log file is being stored
- I'm typing this:
tail -f -n 100 robofont-3-py3.log
I'm not a pro-UNIX-terminal-user, but this command displays the last 100 lines of the chosen text file. This particular command tracks for every change in the file.
I'm wondering how to get rid of the left 'time' section of the *.log file. It takes to much space on the terminal and sometimes causes poor text wrapping. In general, the biggest issue of this is poor wrapping (maybe there is a way to make it better?)
What is cool about this 'tailing', the terminal console won't crash along with RF. So if you are working on some crashy-crashy script/extension/font, the output text won't disappear when suddenly your RF dies (you don't have to waste additional time with opening logfile in the external code editor, as I did before).
RafaŁ Buchner last edited by
If I want to have an almost pythonic "console" behavior, I'm doing the following:
- open two windows in my terminal
- setup tailing in one
- use robot font shell commands in the second
It looks like this:
With this I think it wouldn't be too hard to create python script for the console, that would create something more like "python console".
RafaŁ Buchner last edited by gferreira
I created an alias for the terminal, which shortens the output a little bit. I'm not a master of the grep instructions so I wasn't able to get rid of the date. But I hope it will help you:
alias robofontOutput="tail -f -n 100 ~/Library/Application\ Support/RoboFont/robofont-3-py3.log | sed 's/> OUTPUT > ROBOFONT >>/>>>/; s/ >>/>>/'"