Comments (6)
Is it reproducible as well if you're not in a git repository? Try in $HOME
, for example.
from ohmyzsh.
I think terminal's application mode (smkx) is not yet ready when the prompt hasn't been drawn. If we bind a specific key sequence without using $terminfo
we might have issues cross-terminal, i.e. when a different terminal emulator sends a different key sequence or the same for a different key combination.
We might be able to fix this one instance, but let's be vigilant for other issues.
from ohmyzsh.
Also if one holds the enter key, there is inconsistency in the line breaks - some have the shell prompt, some don't:
from ohmyzsh.
Is it reproducible as well if you're not in a git repository? Try in
$HOME
, for example.
Yes, the up arrow being stuck on a single command yes, the incosistency in line breaks, no.
Also it might be a bit harder to reproduce due to the reduced delay when pressing enter, so requires faster timing than when on a git repo it seems.
Also I could not reproduce it with ctrl + c, just enter.
from ohmyzsh.
The inconsistency with spacing is related to how the prompt is loaded (it checks git status
before drawing). Basically if you manage to click enter before drawing it happens. You can reproduce it easier executing PROMPT+='(sleep 2)'
.
That thing of pressing the up arrow, I can reproduce it as well. The problem is that the character sent to the terminal when the prompt is not drawn yet is ^[[A
instead of ^[[OA
, which in my case is the one that matches with "${terminfo[kcuu1]}"
.
Here we're setting that only for "${terminfo[kcuu1]}"
, and not ^[[A
.
from ohmyzsh.
@mcornella what do you think about this? Should we bind as well ^[[A
to avoid this behaviour?
from ohmyzsh.
Related Issues (20)
- Add FAQ for brew installation HOT 2
- omz update raises "upgrade.sh:186: bad pattern: ^[[31m" HOT 9
- plugins/wd: update to v0.7.0
- Bad rendering in Jetbrains products HOT 3
- `anaconda` env information is displayed incorrectly after commit 309129f HOT 3
- iconv: iconv_open(,-t): Invalid argument HOT 1
- /cc-assignees /cc-labels /cc-main-project /cc-mjllestone
- termuppport.zsh error HOT 1
- Getting string conversion error when I open terminal after installing oh-my-zsh HOT 1
- ctrl + c not respond HOT 2
- When trying to go back to other commands previously used on the terminal, it won't let me if I'm typing "git commit -m" command HOT 2
- Huge delay when using sudo HOT 1
- iconv: iconv_open(, -t): Invalid argument Error converting string from to UTF-8 HOT 3
- high cpu usage when enable ZSH_THEME="robbyrussell" HOT 1
- parse error near `>&' in diagnostics.zsh HOT 6
- Some iconv_open error on running of every command in shell HOT 1
- git async handler not registered when using PROMPT? HOT 1
- iconv: iconv_open(, -t): Invalid argument HOT 2
- When using the mouse, open iterm2 and the percent sign appears HOT 1
- `history -c` should be more verbose to prevent misuse HOT 2
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 ohmyzsh.