2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-08-05 10:17:49 +00:00
Commit Graph

4 Commits

Author SHA1 Message Date
Vinícius Ferrão 4f9c4e4495 fix(tcons): make tcons work with modern tmux
tcons opens an rcons console per node in a tiled tmux session. On tmux 3.x
(shipped by all currently supported platforms) it no longer works:

  * The session was named "tcons.$$".  Modern tmux treats "." as the
    session:window.pane target separator, so "tmux attach -t tcons.$$" is
    parsed as session "tcons", pane "$$" and fails with "can't find
    session"/"can't find pane" -- tcons cannot attach to the session it
    just created.  Rename it to "tcons_$$".

  * The per-node "tmux select-pane", "tmux split" and "tmux select-layout"
    commands had no target.  When tcons is run from inside an existing tmux
    session (the common case) they act on the caller's current session
    instead of the detached tcons session, splitting the operator's own
    window.  Target every command explicitly at the tcons session.

  * Move the pane-border-status option inside the loop so the console title
    is set on each pane as it is created.

Validated on tmux next-3.4: the reworked script builds a 3-pane tiled
session with no errors, whereas the previous version's dotted session name
is unaddressable ("can't find pane").

Recovered from the unmerged lenovobuild branch (originals 5107b6ba1,
cefefa7d1, 6c72a2707, e040d24bb).

Co-authored-by: Jarrod Johnson <10814490+jjohnson42@users.noreply.github.com>
(cherry picked from commit dda7605028)
2026-07-23 23:32:49 +00:00
GONG Jie efb8ab519f Remove trailing spaces in file xCAT-client/bin/tcons 2017-12-31 23:59:59 +00:00
Jarrod Johnson 22fe457bc1 Fix tcons interaction with filename globbing
Filename globbing strings are not good to happen
to noderanges.  Use quotes to avoid it in script.
Caller still needs to be careful to quote/escape
on their end.
2016-08-12 15:57:11 -04:00
jbjohnso 0f753a95d0 New command 'tcons' to be like 'wcons' but using tmux instead of x windows
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12557 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-07 19:03:44 +00:00