Re: [dev] a few questions about watch in ubase

2016-04-26 Thread Greg Reagle
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?

Re: [dev] a few questions about watch in ubase

2016-04-25 Thread Lucas Gabriel Vuotto
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

Re: [dev] a few questions about watch in ubase

2016-04-25 Thread k0ga
> 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

Re: [dev] a few questions about watch in ubase

2016-04-25 Thread k0ga
> 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

Re: [dev] a few questions about watch in ubase

2016-04-22 Thread Greg Reagle
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

Re: [dev] a few questions about watch in ubase

2016-04-21 Thread Ryan Wilson
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

Re: [dev] a few questions about watch in ubase

2016-04-21 Thread Dimitris Papastamos
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

[dev] a few questions about watch in ubase

2016-04-21 Thread Greg Reagle
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