Tag Info

New answers tagged

0

Well, I had to ditch xfce4-terminal, because keybindings were a nightmare, and go back to xterm. I actually prefer having several windows to tabs anyway, it turns out. Here is what I did for keybindings for xterm<-->bash # ctrl-backspace "\C-h":shell-backward-kill-word # meta-backspace "ΓΏ":shell-backward-kill-word # ctrl-delete ...


4

read -s disables the terminal echo only for the duration of that read command. So if you type something in between two read commands, the terminal driver will echo it back. You should disable echo and then call read in your loop without -s: if [ -t 0 ]; then saved=$(stty -g) stty -echo fi while read -rN1; do ... done if [ -t 0 ]; then stty "$saved" ...


1

The supported terminal capability depends on your terminal emulator (xterm, ...). The terminal emulator should set the term info correctly. It does usually not make much sense to use "another terminal" (except maybe xterm-256color instead of xterm or if the $TERM variable is set wrongly). You should use libraries like ncurses which deals automatically with ...



Top 50 recent answers are included