Skip to content
Snippets Groups Projects
Commit 6ade2a7d authored by Seblu's avatar Seblu
Browse files

printer fatal user signal module

parent 9c65957b
No related branches found
No related tags found
No related merge requests found
...@@ -5,14 +5,15 @@ ...@@ -5,14 +5,15 @@
CloudControl CLI Printer module CloudControl CLI Printer module
''' '''
import cccli
from cccli.exception import *
import sys import sys
import os import os
import termios import termios
import fcntl import fcntl
import struct import struct
import signal
import cccli
from cccli.exception import *
color = { color = {
# regular # regular
...@@ -83,7 +84,7 @@ class Printer(object): ...@@ -83,7 +84,7 @@ class Printer(object):
fd, fd,
nl) nl)
if quit: if quit:
os.kill(0, 15) os.kill(0, signal.SIGKILL)
def error(self, message, fd=sys.stderr, nl=os.linesep): def error(self, message, fd=sys.stderr, nl=os.linesep):
self.out("%sError%s: %s%s"%(color["lred"],color["red"],message,color["reset"]), self.out("%sError%s: %s%s"%(color["lred"],color["red"],message,color["reset"]),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment