Comments (8)
Workaround: Add
trap "stty sane; exit 1" INT
in line 231. The code block now reads:
if [ -t 0 ]
then
trap "stty sane; exit 1" INT
Console.WriteStdErr
Console.WriteStdErr " $(UI.Color.Yellow)$(UI.Powerline.Lightning)$(UI.Color.White) Press $(UI.Color.Bold)[CTRL+C]$(UI.Color.White) to exit or $(UI.Color.Bold)[Return]$(UI.Color.White) to continue execution."
read -s
Console.WriteStdErr " $(UI.Color.Blue)$(UI.Powerline.Cog)$(UI.Color.White) Continuing...$(UI.Color.Default)"
return 0
from bash-oo-framework.
I think the problem must be with cygwin terminal's non-proper support for Unicode. It seems the framework detects that unicode is available, but the terminal doesn't handle it properly.
Try pulling the latest version (275e7d8) and change the bootstrap line to:
## BOOTSTRAP ##
NO_UNICODE=true source "$( cd "${BASH_SOURCE[0]%/*}" && pwd )/lib/oo-framework.sh"
The difference is in NO_UNICODE=true
added which will force the framework not to use powerline even if supported.
If that doesn't help, let me know.
from bash-oo-framework.
very same issue on ubuntu 14.04 with GNOME Terminal 3.6.2.
command stty sane
restores prompt correct behaviour.
bootstrap without UNICODE, instead, does not help.
from bash-oo-framework.
Thanks for reporting. PRs are welcome, since I don't currently have time to try and reproduce this in a VM.
from bash-oo-framework.
@digulla solution works fine for me as well.
just note that line trap "stty sane; exit 1" INT
should be n. 226 in the current version of lib/util/exception.sh
.
from bash-oo-framework.
n. 226
@masavini do you mean line 226?
from bash-oo-framework.
yeap
from bash-oo-framework.
@masavini would you like to send a PR with the correction?
from bash-oo-framework.
Related Issues (20)
- Is the project dead? HOT 3
- Sorry, a bit cheeky/impolite... HOT 2
- error handling with throw / command_not_found_handle HOT 3
- Unbound variables cause a crash when running examples with 'set -u' HOT 3
- [bug?] `throw` is said to be 'undefined command' when `import` fail HOT 5
- Catch exception from Classes doesn't work HOT 7
- Inconsistent array assignments HOT 3
- Translating README into Japanese
- for people who want to use Bpkg to install this framework HOT 1
- example/trycatch.sh doesn't work as expected
- Make wiki page
- [Question] Does value of '__primitive_extension_fingerprint' have special meaning?
- update readme instructions for namedParameters
- util/exception.sh shows stack trace as expected but don't exit on Ctrl+C HOT 2
- False boolean not working HOT 1
- Referring this in Human example class doesn't work as described HOT 1
- Exception messages are invisible in light theme mode in Shell console.
- [Question] Is this project still alive? HOT 6
- [Discussion] Log API
- Using a variable for an Object name
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 bash-oo-framework.