On 04/25/2016 02:11 PM, k...@shike2.com wrote:
Dimitris, if I send patches to remove these hard coded sequences by
calls to tput the patches will be accepted?
On my computer, tput comes with package "ncurses-bin". Is that an
appropriate dependency for ubase?
I've an almost complete tput (the program) to add to ubase which has a
terminfo library at is core. I'm planning to send the patch in the next
week if I've time. Soon we'll be able to stop hardcoding this sequences.
Be patient :)
On 25/04/16 15:11, k...@shike2.com wrote:
clear(1) from ncurses
> clear(1) from ncurses also clears the scrollback buffer if the terminal
> supports it (see the manpage), that's not what you'd want here. As for
> portability, tput clear does `^[[2J^[[H` for basically everything:
Dimitris, if I send patches to remove these hard coded sequences by
calls to tput
> Is it appropriate to use ANSI escape codes in the program rather than
> using something like tput or terminfo, or to just execute the "clear"
> command? Are the escape codes portable?
No, they are not. The problem here is that a lot of ppl in suckless
think that doesn't matter to keep the com
Thank you to Dimitris and Ryan for answering my questions--very informative.
On 04/21/2016 02:04 PM, Greg Reagle wrote:
Please excuse me if these questions are rudimentary. I am using Debian
Stable.
Why is watch linked with the crypt library?
cc -s -o watch watch.o libutil.a -lcrypt
It does
On Thu, 21 Apr 2016 13:04:43 -0500 Greg Reagle
wrote
> Is it appropriate to use ANSI escape codes in the program rather than
> using something like tput or terminfo, or to just execute the "clear"
> command? Are the escape codes portable?
clear(1) from ncurses also clears the
On Thu, Apr 21, 2016 at 02:04:43PM -0400, Greg Reagle wrote:
> Please excuse me if these questions are rudimentary. I am using Debian
> Stable.
>
> Why is watch linked with the crypt library?
> cc -s -o watch watch.o libutil.a -lcrypt
> It does not seem to need it.
watch does not use anything
Please excuse me if these questions are rudimentary. I am using Debian
Stable.
Why is watch linked with the crypt library?
cc -s -o watch watch.o libutil.a -lcrypt
It does not seem to need it.
watch uses "\x1b[2J\x1b[H" to clear the screen, which are the two
control codes Erase Screen and C