lfos / calcurse

A text-based calendar and scheduling application
https://calcurse.org
BSD 2-Clause "Simplified" License
990 stars 94 forks source link

Question: how to print calcurse interface without entering TUI? #471

Open GrahamBenHarper opened 1 year ago

GrahamBenHarper commented 1 year ago

I'd like to print the calcurse layout almost exactly as it appears when I run the calcurse command; however, I'd like it to print this via my .bashrc. For example, when I open my terminal, I'd like to see something that looks like this above my shell prompt: Screenshot from 2023-09-16 17-21-38 I tried calcurse -d 1, but I don't see the calendar with today's date highlighted or my todo list. I would like to be able to see everything from the terminal just like when I'm in the TUI, but I would like to avoid entering the TUI if possible. Any help is appreciated!

nimaaskarian commented 10 months ago

this is possible, but because of the escape sequences used in (n)curses, the terminal would be unusable kinda, as you had no cursor.

however, heres the code

calcurse &> somefile &
cat somefile

I hope that you have had some better and less hacky way to do what you wanted to