Skip to content

Commit

Permalink
Try using abduco for session management which should have buffering (#…
Browse files Browse the repository at this point in the history
…439)

* Try using abduco for session management which should have buffering

dtach does work but is too primitive to buffer and repaint previous output.  Abduco might be a better solve

* add annoying tput command

* try force enabling scroll

* different use of tput rmcap
  • Loading branch information
michaeljguarino authored Sep 1, 2023
1 parent 8cf7240 commit 32a8f88
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion boot.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/bash
tput rmcup

if [ -f /home/plural/.env ]; then
source /home/plural/.env
fi

cd ~/workspace || echo "could not check out workspace repo, ensure it exists and git permissions are correct"

zsh
5 changes: 5 additions & 0 deletions dockerfiles/Dockerfile.cloud
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ RUN apt-get -yq update \
lsb-release \
openssh-client \
dtach \
build-essential \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

Expand Down Expand Up @@ -129,6 +130,10 @@ RUN install -m 0755 -d /etc/apt/keyrings && \

WORKDIR /root

RUN git clone https://github.com/pluralsh/abduco.git \
&& cd abduco && git checkout screen-buffer \
&& ./configure && make && make install

ENV TERM=xterm-256color
ENV LC_ALL=en_US.UTF-8
ENV LANG=en_US.UTF-8
Expand Down
4 changes: 2 additions & 2 deletions start-session.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/sh

session="/tmp/plural-workspace"
session="plural-workspace"

# ensure necessary env vars are populated
if [ -f /home/plural/.env ]; then
source /home/plural/.env
fi

dtach -A $session -r winch -Ez /home/plural/boot.sh
abduco -A $session /home/plural/boot.sh

0 comments on commit 32a8f88

Please sign in to comment.