index.md - sites - public wiki contents of suckless.org | |
git clone git://git.suckless.org/sites | |
Log | |
Files | |
Refs | |
--- | |
index.md (2077B) | |
--- | |
1 New terminal in current directory | |
2 ================================= | |
3 | |
4 This patch allows you to spawn a new st terminal using Ctrl-Shift-Return… | |
5 will have the same CWD (current working directory) as the original st in… | |
6 | |
7 The `getcwd_by_pid` function is inspired on [the function with the same … | |
8 dvtm](https://github.com/martanne/dvtm/blob/master/dvtm.c#L1036). | |
9 | |
10 By default the current st terminal will be the parent process of the new… | |
11 This can conflict with the swallow patch for dwm and can result in the w… | |
12 terminal window being swallowd. The orphan variant of this patch works a… | |
13 issue by spawning the new terminal window as an orphan instead (meaning … | |
14 will have no parent process). | |
15 | |
16 To have newterm working with tabbed, apply the st-newterm-0.8.2-tabbed.d… | |
17 on top of st-newterm-0.8.2.diff. | |
18 | |
19 To have tmux support, apply the st-newterm-0.9-tmux.diff patch on top of | |
20 st-newterm-0.9.diff. | |
21 | |
22 With the tmux patch, newterm won't launch a new terminal with the CWD of… | |
23 client itself, but it will use the CWD of the current process in the tmu… | |
24 running under st. | |
25 | |
26 The tmux client must be a direct child of st in order to make newterm de… | |
27 (you'll need to use `exec tmux` or similar). If the child of st isn't a … | |
28 client, newterm will fallback to the CWD of st's child (which is what ne… | |
29 does without the tmux patch). | |
30 | |
31 The tmux patch only works on Linux. | |
32 | |
33 Download | |
34 -------- | |
35 | |
36 * [st-newterm-0.8.2.diff](st-newterm-0.8.2.diff) | |
37 * [st-newterm-0.8.2-tabbed.diff](st-newterm-0.8.2-tabbed.diff) | |
38 * [st-newterm-orphan-20210712-4536f46.diff](st-newterm-orphan-20210712-4… | |
39 * [st-newterm-20220221-0.8.5.diff](st-newterm-20220221-0.8.5.diff) | |
40 * [st-newterm-0.9.diff](st-newterm-0.9.diff) | |
41 * [st-newterm-0.9-tabbed.diff](st-newterm-0.9-tabbed.diff) | |
42 * [st-newterm-0.9-tmux.diff](st-newterm-0.9-tmux.diff) | |
43 | |
44 Authors | |
45 ------- | |
46 * MatÃas Lang | |
47 * Stein Bakkeby (orphan version) | |
48 * Gaspar Vardanyan (tabbed support) | |
49 * [Meator](https://github.com/meator) - <[email protected]> (all of t… |