[dev] Re: Associative arrays implementation in rc shell scripts

2013-01-17 Thread Peter A. Shevtsov
bnwr on #suckless irc suggested two more variants: One, without bc forks -- http://vpaste.net/E91PL And another one as recursive function -- http://vpaste.net/tgCMz

[dev] [st] Unicode in esc str

2013-01-17 Thread Mihail Zenkov
This patch fix unicode in esc str. Test case: echo -e "\033]0;русский\007" st-esc_unicode.patch Description: Binary data

Re: [dev] Associative arrays implementation in rc shell scripts

2013-01-17 Thread Stuart Morrow
The best thing would be to have the shell have a syntax for arithmetic, but then call out to bc to do the actual handling (because then you get trigonometry and literally everything that bc knows how to do, with only a minimal modification to the shell). Syntactic sugar for a heredoc to bc itself.

Re: [dev] Associative arrays implementation in rc shell scripts

2013-01-17 Thread Sam Watkins
On Thu, Jan 17, 2013 at 12:54:55PM +0700, Peter A. Shevtsov wrote: > I've made a simple associative arrays implementation in rc shell script. I'm an rc newbie too, I like the associative arrays. The code looks ok to me - but I wouldn't know! Do we really have to use bc for simple arithmetic in rc

Re: [dev] [st] libcaca output

2013-01-17 Thread Christoph Lohmann
Greetings. On Thu, 17 Jan 2013 20:53:55 +0100 Christoph Lohmann <2...@r-36.net> wrote: > I still have that flickering and disappearing frames with your video. > It seems to be a caca bug which redraws parts that should not be re‐ > drawed. In a mobile gopher world libcaca is a must for vide

Re: [dev] [st] libcaca output

2013-01-17 Thread Christoph Lohmann
Greetings. On Thu, 17 Jan 2013 19:42:27 +0100 Edgaras wrote: > Works in both st (not head/tip, though 0.3 from about a month ago) and xterm, > also surprisingly it seems it even is faster on st! Though I tried this on > quite small terminal windows. At first I tried xterm with full screen termin

Re: [dev] [st] libcaca output

2013-01-17 Thread Edgaras
On Wed, Jan 16, 2013 at 08:22:15PM +0100, Christoph Lohmann wrote: > Greetings comrades, > > I have been trying to use my new fast shell lines to play videos over > libcaca in st. I can’t seem to get libcaca to produce any working curses > picture in xterm and st. > > My command: > > CA