When you press page-up key, the terminal show "[1~" characters and when you press page-down key, the terminal show "[4~" characters.
This problem happended to me in Linux Ubuntu and Centos distributions, and I believe that it must occur with almost all other distributions.
TROUBLESHOOTING
1) Temporary solution:
Change TERM variable to "linux" before start jshell.
$ TERM=linux $ jshell | Welcome to JShell -- Version 11.0.10 | For an introduction type: /help intro jshell> // Now PgUp and PgDown works. |
2) Permanent solution:
Change TERM variable at terminal startup in ~/.bashrc
|
Now close your SSH connection, and connect again.
Show TERM envirounment variable must be "linux"
$ echo $TERM linux
|
Start jshell:
| Welcome to JShell -- Version 11.0.10 | For an introduction type: /help intro jshell> // Now PgUp and PgDown works. |
3) Alternative solution:
| Welcome to JShell -- Version 11.0.10 | For an introduction type: /help intro jshell> // Now PgUp and PgDown works.
|
Nenhum comentário:
Postar um comentário