Commit 6ade2a7d authored by Seblu's avatar Seblu
Browse files

printer fatal user signal module

parent 9c65957b
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -5,14 +5,15 @@
CloudControl CLI Printer module
'''

import cccli
from cccli.exception import *

import sys
import os
import termios
import fcntl
import struct

import cccli
from cccli.exception import *
import signal

color = {
    # regular
@@ -83,7 +84,7 @@ class Printer(object):
            fd,
            nl)
        if quit:
            os.kill(0, 15)
            os.kill(0, signal.SIGKILL)

    def error(self, message, fd=sys.stderr, nl=os.linesep):
        self.out("%sError%s: %s%s"%(color["lred"],color["red"],message,color["reset"]),