Update linux.py
This commit is contained in:
parent
ddf84d8dfc
commit
d7c65c32c9
@ -28,6 +28,17 @@ class screen():
|
|||||||
|
|
||||||
return currScreen
|
return currScreen
|
||||||
|
|
||||||
|
def getIgnoreScreens(self):
|
||||||
|
xlist = []
|
||||||
|
try:
|
||||||
|
x = subprocess.Popen('ps a -o tty,comm | grep -e irssi | grep -v "grep -e irssi"', shell=True, stdout=subprocess.PIPE).stdout.read().decode()[:-1].split('\n')
|
||||||
|
except:
|
||||||
|
return xlist
|
||||||
|
for i in x:
|
||||||
|
if x[:3].upper() == 'TTY':
|
||||||
|
xlist.append(i[4])
|
||||||
|
return xlist
|
||||||
|
|
||||||
def update(self, environment, trigger='updateScreen'):
|
def update(self, environment, trigger='updateScreen'):
|
||||||
newTTY = ''
|
newTTY = ''
|
||||||
newContentBytes = b''
|
newContentBytes = b''
|
||||||
|
Loading…
Reference in New Issue
Block a user