Repository navigation
Remove Boost dependency - #158
Closed
kmcallister wants to merge 15 commits into
Closed
kmcallister wants to merge 15 commits into
kmcallister wants to merge 15 commits into
Conversation
Contributor
|
+1 This would be a great improvement. |
g++/libstdc++ 4.1.2 is unhappy with this use of bind2nd, possibly because the argument is a reference. This is a problem for EL5.
It's reserved by POSIX.
This was referenced Apr 17, 2012
friedenberg
added a commit
to amarbel-llc/posh
that referenced
this pull request
Aug 10, 2026
The interactive default listing now answers "what is posh doing on this machine" whole: the session table, then any live per-destination mux endpoints (the mux ls lines, suppressed when none — keyed off the exported MUX_LS_EMPTY sentinel, not a string copy). The machine formats stay session-only by contract: --short is the completion source, --json the stable shape, and the piped default is unchanged for scripts. posh list --watch [--interval N] re-renders that unified view in the alternate screen (the FDR 0002 terminfo-aware smcup/rmcup pair): q or Ctrl-C quits, r refreshes immediately, resizes are picked up on the next render. Input runs under a new pty::CbreakMode — RawMode's lighter sibling: per-key input with ICANON/ECHO/ISIG cleared but OPOST intact, so the one-shot renderers' plain newlines still return the carriage, and Ctrl-C arrives as a byte so the alt-screen teardown stays in our hands instead of a default SIGINT kill stranding it. --watch with a machine format is rejected; a zero interval clamps to 1 s (a busy-loop otherwise). The flag shape is pure and pinned (parse_list_args_shapes); CbreakMode is pinned against a real pty (flags cleared, OPOST kept, drop restores). Completions and posh(1) updated. Closes mobile-shell#158. Closes #125. :clown: Clown 0.4.3+f631613 — https://code.linenisgreat.com/clown/commit/f631613b2ebc05409d0da67c708b92910a67ea55
friedenberg
added a commit
to amarbel-llc/posh
that referenced
this pull request
Aug 19, 2026
endpoint_status_ls — the server-host counterpart of mux ls — scans agent/*.status.sock and reads each connect→EOF (200 ms bound, the RFC 0013 §4 tuning lever), labeling refused/empty answers stale. The unified interactive posh list (and --watch) appends the section under the mux one; the machine formats stay session-only by the mobile-shell#158 contract. A missing agent dir is "no endpoints", never an error. Task 8 of docs/plans/2026-08-19-server-introspection.md. :clown: Clown 0.4.4+e781f74 — https://code.linenisgreat.com/clown/commit/e781f74404c11650690d7ea73c7c72bc52221b33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
There are various objections to our use of Boost.
I managed to replace all our uses of Boost with vanilla C++98 constructs.
BOOST_AUTOis easy enough. We just spell out the type names, and add a few typedefs to make it more compact.boost::lambdais trickier. We replace some of it (particularlyfor_eachandfind_if) with ordinary loops. Other bits use the awful C++98 faux-functional stuff:std::mem_fun_ref,std::bind2nd, etc. This seems worthwhile forremove_if, where the equivalent loop is bigger, trickier, and depends on the container type.Builds on GNU/Linux with g++ 4.1.2 (EL5), g++ 4.6.3, or clang++ 3.0.