Index: tools/ew.py
===================================================================
--- tools/ew.py	(revision 81805e06a9f080e240dbc7463874411778910389)
+++ tools/ew.py	(revision c35cc8ba8d96e301956178ed827dc88740700ad4)
@@ -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:
