Index: tools/ew.py
===================================================================
--- tools/ew.py	(revision e6b4d2d4d9f0ace7817070a51ebee265b3ed9100)
+++ tools/ew.py	(revision f9c30b9a950523d4a244e2b7d0bc184c17c6d010)
@@ -76,5 +76,9 @@
 
 def termemu_detect():
-	emus = ['gnome-terminal', 'xfce4-terminal', 'xterm']
+	emus = ['gnome-terminal', 'foot', 'xfce4-terminal', 'xterm']
+
+	if 'TERMINAL' in os.environ:
+		emus.insert(0, os.environ['TERMINAL'])
+
 	for termemu in emus:
 		try:
@@ -89,5 +93,6 @@
 def run_in_console(cmd, title):
 	temu = termemu_detect()
-	if temu == 'gnome-terminal':
+
+	if os.path.basename(temu.split(' ')[0]) in ['gnome-terminal', 'foot']:
 		cmdline = temu + ' -- ' + cmd
 	else:
