From e542c523ac2625e6790f4b8dd627a139fe62ddbe Mon Sep 17 00:00:00 2001
From: Rob Swindell <rob@synchro.net>
Date: Wed, 9 Sep 2020 00:55:17 -0700
Subject: [PATCH] Honor the "pause after exit" setting for external programs.

---
 exec/lbshell.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/exec/lbshell.js b/exec/lbshell.js
index a8a7717735..26be2a01bc 100644
--- a/exec/lbshell.js
+++ b/exec/lbshell.js
@@ -708,6 +708,8 @@ while(bbs.online) {
 					}
 					else {
 						bbs.exec_xtrn(xtrn_area.sec_list[curr_xtrnsec].prog_list[parseInt(x_prog)].number);
+						if(xtrn_area.sec_list[curr_xtrnsec].prog_list[parseInt(x_prog)].settings & XTRN_PAUSE)
+							console.pause();
 					}
 					start_mouse();
 					draw_main(true);
-- 
GitLab