Re: [hackers][ubase][tput] tput(1)
On Tue, May 24, 2016 at 7:11 PM,wrote: > ...Ed, Sed, Awk... Those are three different tools for more or less the same job. Eclipse can do it already, so we don't need them in sbase. cheers! mar77i
Re: [hackers][ubase][tput] tput(1)
2016-05-22 18:00 GMT-03:00 Lucas Vuotto: > Hello FRIGN, > > the patch is for ubase, not sbase, which, by definitio, is ugly :D > > Anyway, what you say may still hold true. The patch could be smaller if we > only deal with clear, init and reset parameters, as stated by POSIX. This > come by my mind, but after asking in #suckless, just got an answer from ??, > telling my to go full ncurses tput (which reminds me, it > ?? is Christoph Lohmann > only deals with string capabilities now -- will fix if it gets merged). > > As for the line count, I don't think it's possibly to make any library > dealing with terminfo smaller by a significant amount (say, 10% less > lines). Take in account that the library must provide a parser for a > context-free grammar. > > Aside, maybe tput is too much for ubase. It's listed in the TODO, but I > don't know if it's really needed. > > Concluding, I sent the patch so you can judge if it's worthless to merge > or no. It wasn't wasted time, because it helped me to find bugs in my > library :D > > Cheers. > > > -- lv. > > > > 2016-05-22 16:08 GMT-03:00 FRIGN : > > On Sun, 22 May 2016 16:01:43 -0300 > > Lucas Gabriel Vuotto wrote: > > > > Hey Lucas, > > > >> attached you will find two patches, one implementing a basic library > for dealing > >> with terminfo capabilities and another implementing the tput command > using that > >> library. The library itself is part of a bigger library from me, damned > [0], for > >> TUI creation. > > > >> 9 files changed, 2179 insertions(+), 3 deletions(-) > > > > :O > > > > definitely too much man. > > > > If we look at sbase, it has the following SLOC-count: > > > > Totals grouped by language (dominant language first): > > ansic:18805 (97.57%) > > awk:255 (1.32%) > > sh: 213 (1.11%) > > > > do you really think it's a good idea to increase its size > > by roughly 10% to accomodate one single command? > > > > Cheers > > > > FRIGN > > > > -- > > FRIGN > > > >
Re: [hackers][ubase][tput] tput(1)
Hello FRIGN, the patch is for ubase, not sbase, which, by definitio, is ugly :D Anyway, what you say may still hold true. The patch could be smaller if we only deal with clear, init and reset parameters, as stated by POSIX. This come by my mind, but after asking in #suckless, just got an answer from ??, telling my to go full ncurses tput (which reminds me, it only deals with string capabilities now -- will fix if it gets merged). As for the line count, I don't think it's possibly to make any library dealing with terminfo smaller by a significant amount (say, 10% less lines). Take in account that the library must provide a parser for a context-free grammar. Aside, maybe tput is too much for ubase. It's listed in the TODO, but I don't know if it's really needed. Concluding, I sent the patch so you can judge if it's worthless to merge or no. It wasn't wasted time, because it helped me to find bugs in my library :D Cheers. -- lv. 2016-05-22 16:08 GMT-03:00 FRIGN: > On Sun, 22 May 2016 16:01:43 -0300 > Lucas Gabriel Vuotto wrote: > > Hey Lucas, > >> attached you will find two patches, one implementing a basic library for dealing >> with terminfo capabilities and another implementing the tput command using that >> library. The library itself is part of a bigger library from me, damned [0], for >> TUI creation. > >> 9 files changed, 2179 insertions(+), 3 deletions(-) > > :O > > definitely too much man. > > If we look at sbase, it has the following SLOC-count: > > Totals grouped by language (dominant language first): > ansic:18805 (97.57%) > awk:255 (1.32%) > sh: 213 (1.11%) > > do you really think it's a good idea to increase its size > by roughly 10% to accomodate one single command? > > Cheers > > FRIGN > > -- > FRIGN >
Re: [hackers][ubase][tput] tput(1)
On Sun, 22 May 2016 16:01:43 -0300 Lucas Gabriel Vuottowrote: Hey Lucas, > attached you will find two patches, one implementing a basic library for > dealing > with terminfo capabilities and another implementing the tput command using > that > library. The library itself is part of a bigger library from me, damned [0], > for > TUI creation. > 9 files changed, 2179 insertions(+), 3 deletions(-) :O definitely too much man. If we look at sbase, it has the following SLOC-count: Totals grouped by language (dominant language first): ansic:18805 (97.57%) awk:255 (1.32%) sh: 213 (1.11%) do you really think it's a good idea to increase its size by roughly 10% to accomodate one single command? Cheers FRIGN -- FRIGN
[hackers][ubase][tput] tput(1)
Hello suckless, attached you will find two patches, one implementing a basic library for dealing with terminfo capabilities and another implementing the tput command using that library. The library itself is part of a bigger library from me, damned [0], for TUI creation. The library is work in progress, so it can be a little sucky or bloated at times (after all, the terminal's world sucks), plus it may have some bugs. Found a lot implementing tput and there are already plans for doing some things better. Any feedback or suggestions are welcome. It lacks a manpage. I might do one in the following weeks, but if there is any candidate to do it, he/she will be welcome. Hope it's useful for you guys, keep rockin'. Cheers. -- [0]: https://gitlab.com/lv/damned.git -- lv.