GithubHelp home page GithubHelp logo

Comments (6)

felixhageloh avatar felixhageloh commented on September 17, 2024

Hey Andrea, can you provide the full widget? I tried the command you have me and it seems to work fine if I wrap it in a pre tag. I had other issues, but the newlines came out as expected

from uebersicht.

galli-a avatar galli-a commented on September 17, 2024

The full widget is

command: "/Users/andrea/Applications/cal_list.sh"

refreshFrequency: 10000 #ms

render: (output) ->
    "<pre>#{output}</pre>"

style: """
    left: 100px
    top: 100px
    color: #fff
    width: 600px
    height: 200px
    font-family: STHeiti
    padding-left: 5px
    text-shadow: 2px 2px #000000
"""

from uebersicht.

galli-a avatar galli-a commented on September 17, 2024

Ok, I tried with a different script, that uses newlines as well, but not ASCII escape sequences, and that works perfectly.
I don't think the escape sequences could cause this behavior, though.

from uebersicht.

felixhageloh avatar felixhageloh commented on September 17, 2024

Yeah it was hard to tell what was happening from the screenshots you sent. Get a lot of errors when I run the script you sent me. Also I removed the source ~/.bashrc
However I got decent results when I used just:

command: "icalBuddy -f -sd -df \"%a, %d %B %Y\" 2> /dev/null"

you need to replace icalBuddy with the full path the binary (/usr/local/bin/icalBuddy in your case I think).
I've added the 2> /dev/null to get rid of all the errors I get.
The result has new lines, but escape sequences come out as plain text and don't change the color of course.

from uebersicht.

galli-a avatar galli-a commented on September 17, 2024

Ok, thanks for your help.
Please feel free to close the issue

from uebersicht.

felixhageloh avatar felixhageloh commented on September 17, 2024

cool, let me know if you have more questions!

from uebersicht.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.