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 @@
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"]),
......
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