Example #1
0
def warn(s):
    # if (not args.quiet):
        events.trigger("console.warn", {"message": str(s)})
        print("%s/!\ %s%s" % (_color.YELLOW, s, _color.RESET))
Example #2
0
def debug(s):
    # if(args.verbose and not args.quiet):
        events.trigger("console.debug", {"message": str(s)})
        print("%s!!! %s%s" % (_color.MAGENTA, s, _color.RESET))
Example #3
0
def comment(s):
    # if (not args.quiet):
        events.trigger("console.comment", {"message": str(s)})
        print("%s### %s%s" % (_color.STRONG + _color.BLACK, s, _color.RESET))
Example #4
0
def log_out(s):
    # if (not args.quiet):
        events.trigger("grbl.input", {"message": str(s)})
        print("%s>>> %s%s" % (_color.GREEN, s, _color.RESET))
Example #5
0
def log_in(s):
    # if (not args.quiet):
        events.trigger("grbl.output", {"message": str(s)})
        print("%s<<< %s%s" % (_color.CYAN, s, _color.RESET))
Example #6
0
def info(s):
    # if (not args.quiet):
        events.trigger("console.info", {"message": str(s)})
        print("%s=== %s%s" % (_color.STRONG, s, _color.RESET))