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
This patch fix unicode in esc str. Test case: echo -e "\033]0;русский\007"
st-esc_unicode.patch
Description: Binary data
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.
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
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
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
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