Closed madhavtummala closed 4 years ago
The program itself works as expected. But after running the program, the cursor, text (that I am typing) are not visible. It happened in iTerm2 Build 3.2.6. This issue does not happen in default macOS Terminal.
not visible
iTerm2 Build 3.2.6
This is my iTerm profile
{ "Ansi 5 Color" : { "Green Component" : 0, "Blue Component" : 0.73333334922790527, "Red Component" : 0.73333334922790527 }, "Tags" : [ ], "Ansi 12 Color" : { "Green Component" : 0.3333333432674408, "Blue Component" : 1, "Red Component" : 0.3333333432674408 }, "Use Non-ASCII Font" : false, "Right Option Key Sends" : 0, "Bold Color" : { "Green Component" : 1, "Blue Component" : 1, "Red Component" : 1 }, "Normal Font" : "Monaco 14", "Ansi 6 Color" : { "Green Component" : 0.73333334922790527, "Blue Component" : 0.73333334922790527, "Red Component" : 0 }, "Custom Directory" : "Advanced", "Rows" : 30, "Default Bookmark" : "No", "Ansi 4 Color" : { "Green Component" : 0, "Blue Component" : 0.73333334922790527, "Red Component" : 0 }, "AWDS Tab Option" : "Recycle", "Non-ASCII Anti Aliased" : true, "Use Bright Bold" : false, "Ansi 10 Color" : { "Green Component" : 1, "Blue Component" : 0.3333333432674408, "Red Component" : 0.3333333432674408 }, "Ambiguous Double Width" : false, "AWDS Pane Option" : "Recycle", "Jobs to Ignore" : [ "rlogin", "ssh", "slogin", "telnet" ], "Ansi 15 Color" : { "Green Component" : 1, "Blue Component" : 1, "Red Component" : 1 }, "Foreground Color" : { "Green Component" : 0.73333334922790527, "Blue Component" : 0.73333334922790527, "Red Component" : 0.73333334922790527 }, "Working Directory" : "\/Users\/madhavtummala", "Blinking Cursor" : false, "AWDS Window Option" : "No", "Sync Title" : false, "Prompt Before Closing 2" : false, "BM Growl" : true, "Command" : "", "Description" : "Default", "AWDS Pane Directory" : "", "Disable Window Resizing" : true, "Screen" : -1, "Selection Color" : { "Green Component" : 0.8353000283241272, "Blue Component" : 1, "Red Component" : 0.70980000495910645 }, "Mouse Reporting" : true, "AWDS Window Directory" : "", "Columns" : 80, "Idle Code" : 0, "Ansi 13 Color" : { "Green Component" : 0.3333333432674408, "Blue Component" : 1, "Red Component" : 1 }, "Custom Command" : "No", "ASCII Anti Aliased" : true, "Non Ascii Font" : "Monaco 12", "Vertical Spacing" : 1, "Use Bold Font" : true, "Option Key Sends" : 2, "Selected Text Color" : { "Green Component" : 0, "Blue Component" : 0, "Red Component" : 0 }, "Background Color" : { "Green Component" : 0, "Blue Component" : 0, "Red Component" : 0 }, "Character Encoding" : 4, "Ansi 11 Color" : { "Green Component" : 1, "Blue Component" : 0.3333333432674408, "Red Component" : 1 }, "Use Italic Font" : true, "Unlimited Scrollback" : false, "Keyboard Map" : { "0xf702-0x280000" : { "Text" : "b", "Action" : 10 }, "0xf702-0x300000" : { "Text" : "0x01", "Action" : 11 }, "0x7a-0x100000" : { "Text" : "0x1f", "Action" : 11 }, "0xf703-0x280000" : { "Text" : "f", "Action" : 10 }, "0x7f-0x100000" : { "Text" : "0x15", "Action" : 11 }, "0xf703-0x300000" : { "Text" : "0x05", "Action" : 11 }, "0x7f-0x80000" : { "Text" : "0x1b 0x08", "Action" : 11 } }, "Window Type" : 0, "Blur Radius" : 16.704548699238579, "Cursor Type" : 1, "Background Image Location" : "", "Blur" : true, "Scrollback Lines" : 1000, "Send Code When Idle" : false, "Close Sessions On End" : true, "Terminal Type" : "xterm-256color", "Visual Bell" : true, "Flashing Bell" : false, "Silence Bell" : false, "Ansi 14 Color" : { "Green Component" : 1, "Blue Component" : 1, "Red Component" : 0.3333333432674408 }, "Name" : "Mad", "Cursor Text Color" : { "Green Component" : 1, "Blue Component" : 1, "Red Component" : 1 }, "Shortcut" : "", "Cursor Color" : { "Green Component" : 0.73333334922790527, "Blue Component" : 0.73333334922790527, "Red Component" : 0.73333334922790527 }, "Ansi 0 Color" : { "Green Component" : 0, "Blue Component" : 0, "Red Component" : 0 }, "Transparency" : 0.23331614847715734, "Horizontal Spacing" : 1, "Link Color" : { "Red Component" : 0.73423302173614502, "Color Space" : "sRGB", "Blue Component" : 0, "Alpha Component" : 1, "Green Component" : 0.4694717490056064 }, "Ansi 1 Color" : { "Green Component" : 0, "Blue Component" : 0, "Red Component" : 0.73333334922790527 }, "Guid" : "B4DB0655-1184-421C-95FF-04DDDC54FC8F", "Ansi 3 Color" : { "Green Component" : 0.73333334922790527, "Blue Component" : 0, "Red Component" : 0.73333334922790527 }, "Ansi 7 Color" : { "Green Component" : 0.73333334922790527, "Blue Component" : 0.73333334922790527, "Red Component" : 0.73333334922790527 }, "AWDS Tab Directory" : "", "Ansi 9 Color" : { "Green Component" : 0.3333333432674408, "Blue Component" : 0.3333333432674408, "Red Component" : 1 }, "Ansi 8 Color" : { "Green Component" : 0.3333333432674408, "Blue Component" : 0.3333333432674408, "Red Component" : 0.3333333432674408 }, "Ansi 2 Color" : { "Green Component" : 0.73333334922790527, "Blue Component" : 0, "Red Component" : 0 } }
This is my .bash_profile file
.bash_profile
# Enable tab completion source ~/.git-completion.bash # colors! green="\[\033[0;32m\]" blue="\[\033[1;36m\]" brown="\[\033[1;33m\]" reset="\[\033[0m\]" # Change command prompt source ~/.git-prompt.sh export GIT_PS1_SHOWDIRTYSTATE=1 # '\u' adds the name of the current user to the prompt # '\$(__git_ps1)' adds git-related stuff # '\W' adds the name of the current directory # export PS1="$brown\u$green\$(if [ $(id -u) -ne 0 ]; then echo $(__git_ps1) ; fi)$blue \W $ $reset" export PS1="$brown\u$green\$(__git_ps1)$blue \W $ $reset" # export PATH=usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:$PATH export PATH=/usr/local/:/usr/local/sbin/:$PATH test -e "${HOME}/.iterm2_shell_integration.bash" && source "${HOME}/.iterm2_shell_integration.bash"
Okay so typing - stty echo or stty sane fixed it for me. Don't know what exactly caused the problem or how this fixes it though!
stty echo
stty sane
The program itself works as expected. But after running the program, the cursor, text (that I am typing) are
not visible
. It happened iniTerm2 Build 3.2.6
. This issue does not happen in default macOS Terminal.This is my iTerm profile
This is my
.bash_profile
file