ref: 722caafd611b09cb542755fa3f6f01be36acc34f
parent: 7d6dc788b95b32904f2252e4687993b50fa5db10
author: phil9 <telephil9@gmail.com>
date: Thu Feb 25 08:05:54 EST 2021
close mouse and keyboard control (thx sigrid) if dumping to stdout we need to close the controls otherwise it will not work properly
--- a/vshot.c
+++ b/vshot.c
@@ -75,6 +75,8 @@
int fd;
if(dump){
+ closemouse(mctl);
+ closekeyboard(kctl);
writememimage(1, wins[cur]->image);
threadexitsall(nil);
}