Have a dedicated zone in the UI (typically in or next to the message box) to display position information, and display there:
the command being executed (should be straightforward in any language; multilingual support will presumably require a table of command names)
the line being executed; this require some specific support from the language; in C/C++, macro magic with __LINE__ should do. Caveat: lines numbers can reported incorrectly in xeus-cling; see ... .
Bonus: recover the cell number, and use some debugger-style UI to point to the line being executed.
Have a dedicated zone in the UI (typically in or next to the message box) to display position information, and display there:
__LINE__
should do. Caveat: lines numbers can reported incorrectly in xeus-cling; see ... .Bonus: recover the cell number, and use some debugger-style UI to point to the line being executed.