Suppress Enter don't work when using echo_newline extension
See original GitHub issueI’ve tried
keypress : function(event) {
if(event.key === "Enter"){
event.preventDefault();
event.stopPropagation();
return false;
}
},
keydown : function(event) {
if(event.key === "Enter"){
event.preventDefault();
event.stopPropagation();
return false;
}
},
keymap : {
ENTER : function(event){
event.preventDefault();
event.stopPropagation();
}
}
but pressing ENTER still makes a new line in the terminal.
TODO:
- fix echo_newline keymap option with ENTER
- fix echo_newline keymap method with ENTER
- document workings of keymap and events.
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (14 by maintainers)
Top Results From Across the Web
How to add new lines when using echo - Unix Stack Exchange
A nice simple "-e" option to get escape sequences working - it says on another answer that echo is unreliable and doesn't follow...
Read more >Echo newline in Bash prints literal \n - Stack Overflow
This works both inside a script and from the command line. On the command line, press Shift + Enter to do the line...
Read more >echo text with new line in bash - linux - Super User
I guess that you want to add an extra line before that text, probably because your initial file doesn't end in a new...
Read more >Bash Reference Manual - GNU.org
If a \newline pair appears, and the backslash itself is not quoted, the \newline is treated as a line continuation (that is, it...
Read more >Why does bash remove \n in $(cat file)? - Ask Ubuntu
Probably the input of echo is separated by newlines, and it will handle it as separate commands, so the result will be without...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The PR was merged to only documentation the working on events is needed here.
I think my PR will handle bullets 1 and 2 in the TODO here.