diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5c01d774..0bfb3ca9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,12 @@
## Unreleased
+## Release 0.1.2
+
+### Fixes
+- Fixes: [#109](https://github.com/cytopia/pwncat/issues/109) when pasting in term I donot get full line echo
+
+
## Release 0.1.1
### Fixes
diff --git a/Makefile b/Makefile
index a4e8e916..a3404fa3 100644
--- a/Makefile
+++ b/Makefile
@@ -151,6 +151,7 @@ _code-pycodestyle:
echo "# Check pycodestyle: $${V}"; \
echo "# -------------------------------------------------------------------- #"
@#
+ docker pull cytopia/pycodestyle
docker run --rm $$(tty -s && echo "-it" || echo) -v $(PWD):/data --entrypoint= cytopia/pycodestyle sh -c ' \
mkdir -p /tmp \
&& cp $(BINPATH)$(BINNAME) /tmp/$(BINNAME).py \
@@ -163,6 +164,7 @@ _code-pydocstyle:
echo "# Check pydocstyle: $${V}"; \
echo "# -------------------------------------------------------------------- #"
@#
+ docker pull cytopia/pydocstyle
docker run --rm $$(tty -s && echo "-it" || echo) -v $(PWD):/data --entrypoint= cytopia/pydocstyle sh -c ' \
mkdir -p /tmp \
&& cp $(BINPATH)$(BINNAME) /tmp/$(BINNAME).py \
@@ -175,6 +177,7 @@ _code-pylint:
echo "# Check pylint: $${V}"; \
echo "# -------------------------------------------------------------------- #"
@#
+ docker pull cytopia/pylint
docker run --rm $$(tty -s && echo "-it" || echo) -v $(PWD):/data --entrypoint= cytopia/pylint sh -c ' \
mkdir -p /tmp \
&& cp $(BINPATH)$(BINNAME) /tmp/$(BINNAME).py \
@@ -187,6 +190,7 @@ _code-black:
echo "# Check Python Black: $${V}"; \
echo "# -------------------------------------------------------------------- #"
@#
+ docker pull cytopia/black
docker run --rm $$(tty -s && echo "-it" || echo) -v ${PWD}:/data --entrypoint= cytopia/black sh -c ' \
mkdir -p /tmp \
&& cp $(BINPATH)$(BINNAME) /tmp/$(BINNAME).py \
@@ -199,6 +203,7 @@ _code-mypy:
echo "# Check Mypy: $${V}"; \
echo "# -------------------------------------------------------------------- #"
@#
+ docker pull cytopia/mypy
docker run --rm $$(tty -s && echo "-it" || echo) -v ${PWD}:/data --entrypoint= cytopia/mypy sh -c ' \
mkdir -p /tmp \
&& cp $(BINPATH)$(BINNAME) /tmp/$(BINNAME).py \
@@ -499,6 +504,7 @@ docs: _docs-version_readme
.PHONY: _docs-man
_docs-man: $(BINPATH)$(BINNAME)
+ docker pull python:3-alpine
docker run --rm $$(tty -s && echo "-it" || echo) -v $(PWD):/data -w /data -e UID=$(UID) -e GID=${GID} python:3-alpine sh -c ' \
apk add help2man \
&& help2man -n $(BINNAME) --no-info --source=https://github.com/cytopia/pwncat -s 1 -o $(MANPATH)$(BINNAME).1 $(BINPATH)$(BINNAME) \
@@ -520,6 +526,7 @@ _docs-man: $(BINPATH)$(BINNAME)
.PHONY: _docs-api
_docs-api:
@# Generate pdoc API page
+ docker pull python:3-alpine
docker run --rm $$(tty -s && echo "-it" || echo) -v $(PWD):/data -w /data -e UID=$(UID) -e GID=${GID} python:3-alpine sh -c ' \
pip install pdoc3 \
&& mkdir -p /tmp \
@@ -531,6 +538,8 @@ _docs-api:
.PHONY: _docs-mypy_type_coverage
_docs-mypy_type_coverage:
@# Generate mypy code coverage page
+ docker pull cytopia/mypy
+ docker pull python:3-alpine
docker run --rm $$(tty -s && echo "-it" || echo) -v ${PWD}:/data -w /data -e UID=$(UID) -e GID=${GID} --entrypoint= cytopia/mypy sh -c ' \
mypy --config-file setup.cfg --html-report tmp $(BINPATH)$(BINNAME) \
&& cp -f tmp/mypy-html.css docs/css/mypy.css \
diff --git a/README.md b/README.md
index 01b90f8b..8419ad9d 100644
--- a/README.md
+++ b/README.md
@@ -137,7 +137,7 @@
-> [1] mypy type coverage (fully typed: 93.96%)
+> [1] mypy type coverage (fully typed: 94.00%)
> [2] Failing builds do not indicate broken functionality. Integration tests run for multiple hours and break sporadically for various different reasons (network timeouts, unknown cancellations of GitHub Actions, etc): #735, #841
>
@@ -166,7 +166,7 @@ tool that works on older and newer machines (hence Python 2+3 compat). Most impo
## :tada: Install
-Current version is: **0.1.1**
+Current version is: **0.1.2**
#### Generic
diff --git a/bin/pwncat b/bin/pwncat
index 908a92a0..c2198635 100755
--- a/bin/pwncat
+++ b/bin/pwncat
@@ -128,7 +128,7 @@ if os.environ.get("MYPY_CHECK", False):
APPNAME = "pwncat"
APPREPO = "https://github.com/cytopia/pwncat"
-VERSION = "0.1.1"
+VERSION = "0.1.2"
# Default timeout for timeout-based sys.stdin and socket.recv
TIMEOUT_READ_STDIN = 0.05
@@ -3525,7 +3525,10 @@ class IOStdinStdout(IO):
# [2/3] (Linux/Mac) Raw mode
if self.__stdin_israw():
- self.__set_input_timeout()
+ # Issue #109
+ # when pasting in term I donot get full line echo
+ # To mitigate this, I'm disabling the select.select call on sys.stdin
+ # self.__set_input_timeout()
if self.__py3:
return sys.stdin.buffer.read(1)
return sys.stdin.read(1) # type: ignore
diff --git a/docs/pwncat.api.html b/docs/pwncat.api.html
index 6ba54f28..ff2ad048 100644
--- a/docs/pwncat.api.html
+++ b/docs/pwncat.api.html
@@ -3,7 +3,7 @@
pwncat
pwncat
T