calendar() : implement a formatted display
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
It is presently not possible to display the calendar of a month in a formatted readable way:
--> calendar()
ans =
ans(1)
Déc. 2019
ans(2)
Lun Mar Mer Jeu Ven Sam Dim
ans(3)
0. 0. 0. 0. 0. 0. 1.
2. 3. 4. 5. 6. 7. 8.
9. 10. 11. 12. 13. 14. 15.
16. 17. 18. 19. 20. 21. 22.
23. 24. 25. 26. 27. 28. 29.
30. 31. 0. 0. 0. 0. 0.
A formatted display would be useful.
Since it is presently not possible to detect whether no output argument is expected, meaning that just a formatted display is requested, a "display" option could be introduced, before the required argn(1)==0 feature is implemented.
ERROR LOG:
----------
HOW TO REPRODUCE THE BUG:
-------------------------
calendar
OTHER INFORMATION:
------------------
The feature argn(1)==0 is committed and pending there: https://codereview.scilab.org/21034