Robofont shell output also inside shell
bahman last edited by gferreira
I hope this will be possible to have the Robofont shell output also inside the shell? Sometimes it's more convenient to get the output of a script that had been run inside the shell also inside the shell. Take a look at this conversation on github:
Thanks a million!
mmm, I guess we are stuck inside RF after a call has been send...
Ow Bummer ( T ʖ̯ T). Thank you anyway!
StephenNixon last edited by
I would also love this to exist. :)
maybe maybe maybe: everything that is printed into output window also goes into the RoboFont.log file...
RafaŁ Buchner last edited by gferreira
That would be so cool!
I would love that!
small offtopic: maybe it would be nice to put our gist links ( @bahman’s, @StephenNixon’s and mine ) directly or as the how-to guides to the robofont online documentation? I don't know
I've been looking for a similar solution like these for a while on robofont website before.
@RafaŁ-Buchner yes, thanks for the suggestion. it’s on my to-do list.
see also Editing the documentation if you wish to submit changes directly.
@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!
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.
btw there is also a Pycharm instruction by @RafaŁ-Buchner :
verbosus last edited by
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/ >>/>>/'"