Becoming a Real Curses Application? #22
LegalizeAdulthood
started this conversation in
Polls
Replies: 1 comment
-
|
I just noticed that by using plain ole printf, that previous articles are available in the scrollback buffer of a terminal emulator. Of course, on a real terminal that would be gone unless the terminal implemented a scrollback buffer. So maybe that is one point in favor of printf and against curses. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Right now, trn scrapes a bunch of terminal strings from the termlib library (see
Tgetstr) interminal.cppand uses the individual escape sequences at various parts of the program to perform special effects like drawing the article references tree. Otherwise, all the output is justprintfto the console.I think the main reason for the scraping of the control sequences is just so that
printf,putsandputcharcan be used all over the place for performing any output and not having to worry about curses. Technically, trn doesn't need curses, just the underlying termcap library, but since the termcap library on modern systems is always packaged with curses, there doesn't seem much point in not using curses at this point. I'm not sure of the history, but perhaps curses was a commercial product at one point and wasn't wide available.Should trn become a full-blown curses application?
What do you think?
0 votes ·
Beta Was this translation helpful? Give feedback.
All reactions