akinomyoga / ble.sh

Bash Line Editor―a line editor written in pure Bash with syntax highlighting, auto suggestions, vim modes, etc. for Bash interactive sessions.
BSD 3-Clause "New" or "Revised" License
2.67k stars 85 forks source link

blesh and nano #357

Closed squid-slime closed 1 year ago

squid-slime commented 1 year ago

the issue i am having with blesh is that when editing in nano the nano keybinds are broken, ctrl+s to save now prints ;5;115~ and ctrl+x also prints ;5;120~ and this goes for all bindings, like when using gomuks i also have issues with upper case lettering now printing strings

bashrc

# ~/.bashrc
#
export EDITOR=/usr/bin/nvim
export VISUAL='nano'

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

PS1='\[\033[7;32m\]\u@\h \[\033[1;34m\]\d \t \[\033[0;36m\]\w\[\033[0m\]\n\$ \[\033[0m\]' 

# Use bash-completion, if available
[[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] && \
    . /usr/share/bash-completion/bash_completion

if [ $TILIX_ID ] || [ $VTE_VERSION ]; then
        source /etc/profile.d/vte.sh
fi

if [ "$(tty)" = "/dev/tty1" ]; then
        exec dbus-run-session sway
fi

# COLOURS! YAAAY!
export TERM=xterm-256color

[[ $- == *i* ]] && source /usr/share/blesh/ble.sh #--noattach

#Aliases
alias htop='btop'${pur}
alias webapp='nativefier'${pur}
alias ls='ls --color=auto'
alias grc='grc --colour=auto'
alias tui="python /home/squid/Documents/pyrunthis"
akinomyoga commented 1 year ago

Which terminal do you use? Some of the terminals behave differently from XTerm for the terminal feature called modifyOtherKeys, which was introduced by XTerm. Also, what is the result of the following command?

$ ble/widget/display-shell-version
squid-slime commented 1 year ago
$ ble/widget/display-shell-version 
squid@archlinux Wed Aug 30 15:52:45 ~
$ 
GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu) with ble.sh

and i am using foot

akinomyoga commented 1 year ago

Thanks. That means you are using an old version ble-0.3. Please use ble-0.4.

squid-slime commented 1 year ago

thank you, this has fixed the issue

akinomyoga commented 1 year ago

Thanks!