Re: [dev] a few questions

2017-04-13 Thread Greg Reagle
On Thu, Apr 13, 2017, at 12:58, Greg Minshall wrote: > 3. i recently lost my ability to run X on my laptop, so lived with tmux > (which i heard about here, and very much like -- thanks!). this > experience emphasized that often i'd rather have a two-key (say) > sequence, ^B-j, rather than the "c

Re: [dev] a few questions

2017-04-13 Thread Inokentiy Babushkin
Hi, I am no developer of any of the suckless projects, but I guess I can outline how people I know, including myself, handle the configuration issue. > 1. when people make changes to their, e.g., config.def.h, how do they > deal with that w.r.t. git (branches, etc.)? i'd like to be able to use

Re: [dev] a few questions

2017-04-13 Thread Greg Reagle
Config.h is the file actually used to build the program. It is intended to be "manually" controlled by the user/developer, meaning not managed by git and not generated by a recipe in a makefile. It is for personal preferences. It is a sort of substitute for a .rc file. As far as i understand, y

[dev] a few questions

2017-04-13 Thread Greg Minshall
hi, all. thanks again for dwm, surf, both of which i use a lot. i had a few newbie questions. 1. when people make changes to their, e.g., config.def.h, how do they deal with that w.r.t. git (branches, etc.)? i'd like to be able to use git to track, but integrate my changes (without the danger

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