Comments (4)
Hello; is this the same as issue #87 (no echo from user input)?
If so, maybe you could try PR #110 -- suggested by @philburk -- which is a one-liner.
- I was also using
musl
. Withlibc
, it works fine, so it is likely the exact same problem.
from pforth.
This did solve the problem. Thank you.
from pforth.
@ithuriel-github - What happens if you remove the code related to tcsetattr()?
Maybe we don't need both techniques.
from pforth.
Hello,
Yes, it seems that calling tcsetattr
is still necessary:
Calling tcsetattr
:
# pforth
PForth V28-BE/32, built Mar 31 2022 16:07:57
pForth loading dictionary from file /usr/share/pforth/pforth.dic
File format version is 10
Name space size = 120000
Code space size = 300000
Entry Point = 0
Cell Size = 4
Big Endian Dictionary
10 ok
Stack<10> 10
20 ok
Stack<10> 10 20
+ ok
Stack<10> 30 <== ends smoothly after ^D
If I supress the call to tcsetattr
:
# pforth
PForth V28-BE/32, built Mar 31 2022 16:07:57
pForth loading dictionary from file /usr/share/pforth/pforth.dic
File format version is 10
Name space size = 120000
Code space size = 300000
Entry Point = 0
Cell Size = 4
Big Endian Dictionary
10
10 ok
Stack<10> 10
20
20 ok
Stack<10> 10 20
+
+ ok
Stack<10> 30 <=== ^D here; it starts an infinite loop:
���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� ok
Stack<10> 30
���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� ok
Stack<10> 30
���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� ok
Stack<10> 30
I've made an adjustment to the PR indenting the call to setvbuf
and checking if it returns error. Is this ok?
from pforth.
Related Issues (20)
- Provide access to command line residue
- How to build the m library? HOT 3
- Structure tests broken on 32-bit builds
- Need docs for building standalone pForth executable HOT 1
- Build and test on Windows HOT 18
- pforth under OpenVMS HOT 2
- support multi-line comments using "("
- implement search-order wordset HOT 1
- cmake-based build does not work on Nixpkgs HOT 2
- issuing a '?' at the forth prompt crashes interpreter HOT 4
- mistake in definition of flnp1 HOT 5
- ANSI escape sequences on Windows
- PForth + FPGA Marketing HOT 2
- Using CreateGlueToC without a shell HOT 3
- Cannot build with PF_NO_SHELL
- TRACE of words with 2>R and 2R> is wrong. HOT 5
- Comment line causes segfault HOT 1
- CMAKE build on Mac fails, 'string.h' file not found
- Unix Makefile fails on macOS HOT 3
- Review old Issues from Google Code
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pforth.