![]() ![]() For instance, with xterm, you can use the translations X11 resource to change the key mapping and tell it to send whatever you want upon a given key press. In the first mode, you cannot change what character is used to accept the line.īut you may be able to tell your terminal to send the ^J character upon pressing this or that key. The second mode is used by applications like zsh, bash or vi that want to take control of the line editing. The first mode is the default mode of the terminal. In both cases, the ^M (CR) character can be automatically translated to ^J (LF) (or ignored for those terminals that send both CR and LF upon pressing Enter). Where every character is available for reading to the application reading the terminal device as soon as it is typed, or after a delay or after so many have been entered depending on the time and min parameters, but in anycase, not with that internal line editor. Nothing is sent to the application reading from the terminal device until the ^J character is received. In that mode, the terminal comes with an internal line editor where the ^H (or ^?), ^W, ^U (or ^V (or \) characters can be used to edit the line. ![]() Terminals have two major modes both of which can be fine tuned with extra settings:
0 Comments
Leave a Reply. |