about summary refs log tree commit diff stats
path: root/src/display
diff options
context:
space:
mode:
Diffstat (limited to 'src/display')
-rw-r--r--src/display/client.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/display/client.nim b/src/display/client.nim
index a292bf0a..5b961841 100644
--- a/src/display/client.nim
+++ b/src/display/client.nim
@@ -154,6 +154,11 @@ proc command(client: Client, src: string) =
   client.console.container.requestLines().then(proc() =
     client.console.container.cursorLastLine())
 
+proc suspend(client: Client) {.jsfunc.} =
+  client.pager.term.quit()
+  discard kill(getpid(), cint(SIGSTOP))
+  client.pager.term.restart()
+
 proc quit(client: Client, code = 0) {.jsfunc.} =
   if client.alive:
     client.alive = false
u/blame/subx/build?h=main&id=6ded65f45f633637de853b4e0b483080050394ca'>^
248e789e ^





































































f898ee7a ^
248e789e ^
f898ee7a ^
248e789e ^










e1eefb8a ^
248e789e ^
a7c35665 ^

248e789e ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109