Coder Social home page Coder Social logo

Comments (8)

digulla avatar digulla commented on September 27, 2024

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.

niieani avatar niieani commented on September 27, 2024

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.

masavini avatar masavini commented on September 27, 2024

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.

niieani avatar niieani commented on September 27, 2024

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.

masavini avatar masavini commented on September 27, 2024

@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.

niieani avatar niieani commented on September 27, 2024

n. 226

@masavini do you mean line 226?

from bash-oo-framework.

masavini avatar masavini commented on September 27, 2024

yeap

from bash-oo-framework.

niieani avatar niieani commented on September 27, 2024

@masavini would you like to send a PR with the correction?

from bash-oo-framework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.