workermill 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,29 @@
1
+ // src/terminal.js
2
+ var currentStatusBar = "";
3
+ function initTerminal() {
4
+ }
5
+ function setStatusBar(text) {
6
+ currentStatusBar = text;
7
+ }
8
+ function showStatusBar() {
9
+ if (currentStatusBar) {
10
+ process.stdout.write("\n" + currentStatusBar + "\n");
11
+ }
12
+ }
13
+ function exitTerminal() {
14
+ }
15
+ function isManaged() {
16
+ return false;
17
+ }
18
+ function getStatusBarText() {
19
+ return currentStatusBar;
20
+ }
21
+
22
+ export {
23
+ initTerminal,
24
+ setStatusBar,
25
+ showStatusBar,
26
+ exitTerminal,
27
+ isManaged,
28
+ getStatusBarText
29
+ };