Linux terminal: Keyword highlighting similar to MobaXTerm without piping
Clash Royale CLAN TAG#URR8PPP
When I SSH into a Linux machine from Windows using MobaXTerm, I get the benefit of syntax highlighting (https://mobaxterm.mobatek.net/features.html --> see Syntax highlighting in terminal
). It automatically highlights keywords like error
, pass
, failed
, missing
, etc. I find this extremely useful when executing scripts that spew out a lot of debugging text -- the highlighting has helped me to notice errors that I have missed for several months due to the verbosity.
I know that programs like VIM have syntax highlighting, but it's at a program level, and is language (or file-type) specific.
I'm looking for the same highlighting as MobaXTerm, but at a Linux terminal level. Currently, I have to switch to Windows and SSH to the Linux machine just that have that feature, which is a chore. It would be nice if there is a plugin for the terminal.
Syntax highlighting in the terminal suggests few solutions, but requires the output to be piped to an external program.
linux terminal
add a comment |
When I SSH into a Linux machine from Windows using MobaXTerm, I get the benefit of syntax highlighting (https://mobaxterm.mobatek.net/features.html --> see Syntax highlighting in terminal
). It automatically highlights keywords like error
, pass
, failed
, missing
, etc. I find this extremely useful when executing scripts that spew out a lot of debugging text -- the highlighting has helped me to notice errors that I have missed for several months due to the verbosity.
I know that programs like VIM have syntax highlighting, but it's at a program level, and is language (or file-type) specific.
I'm looking for the same highlighting as MobaXTerm, but at a Linux terminal level. Currently, I have to switch to Windows and SSH to the Linux machine just that have that feature, which is a chore. It would be nice if there is a plugin for the terminal.
Syntax highlighting in the terminal suggests few solutions, but requires the output to be piped to an external program.
linux terminal
Does it need to be perfect, or just pretty good? Do you have a list of (keyword, color) pairs? Are you prepared to have output slightly delayed, e.g if "failed" is a keyword and the program outputs "fail" and then nothing more for 30 seconds, do you want to see the word fail, which is then erased if "ed" is output and replaced with a coloured failed, or would you accept no output until it is known that the next 2 letters are "ed"?
– icarus
Jan 5 at 5:49
1
I'm not aware of any terminal emulator for Linux that does syntax highlighting on its own, like MobaXterm (Windows) or iTerm2 (macOS) do. There's a feature request for gnome-terminal at bugzilla.gnome.org/show_bug.cgi?id=788673 but this doesn't help you out at this moment.
– egmont
Jan 5 at 9:18
add a comment |
When I SSH into a Linux machine from Windows using MobaXTerm, I get the benefit of syntax highlighting (https://mobaxterm.mobatek.net/features.html --> see Syntax highlighting in terminal
). It automatically highlights keywords like error
, pass
, failed
, missing
, etc. I find this extremely useful when executing scripts that spew out a lot of debugging text -- the highlighting has helped me to notice errors that I have missed for several months due to the verbosity.
I know that programs like VIM have syntax highlighting, but it's at a program level, and is language (or file-type) specific.
I'm looking for the same highlighting as MobaXTerm, but at a Linux terminal level. Currently, I have to switch to Windows and SSH to the Linux machine just that have that feature, which is a chore. It would be nice if there is a plugin for the terminal.
Syntax highlighting in the terminal suggests few solutions, but requires the output to be piped to an external program.
linux terminal
When I SSH into a Linux machine from Windows using MobaXTerm, I get the benefit of syntax highlighting (https://mobaxterm.mobatek.net/features.html --> see Syntax highlighting in terminal
). It automatically highlights keywords like error
, pass
, failed
, missing
, etc. I find this extremely useful when executing scripts that spew out a lot of debugging text -- the highlighting has helped me to notice errors that I have missed for several months due to the verbosity.
I know that programs like VIM have syntax highlighting, but it's at a program level, and is language (or file-type) specific.
I'm looking for the same highlighting as MobaXTerm, but at a Linux terminal level. Currently, I have to switch to Windows and SSH to the Linux machine just that have that feature, which is a chore. It would be nice if there is a plugin for the terminal.
Syntax highlighting in the terminal suggests few solutions, but requires the output to be piped to an external program.
linux terminal
linux terminal
edited Jan 6 at 12:21
Rui F Ribeiro
39.5k1479133
39.5k1479133
asked Jan 5 at 4:51
RyuuRyuu
1062
1062
Does it need to be perfect, or just pretty good? Do you have a list of (keyword, color) pairs? Are you prepared to have output slightly delayed, e.g if "failed" is a keyword and the program outputs "fail" and then nothing more for 30 seconds, do you want to see the word fail, which is then erased if "ed" is output and replaced with a coloured failed, or would you accept no output until it is known that the next 2 letters are "ed"?
– icarus
Jan 5 at 5:49
1
I'm not aware of any terminal emulator for Linux that does syntax highlighting on its own, like MobaXterm (Windows) or iTerm2 (macOS) do. There's a feature request for gnome-terminal at bugzilla.gnome.org/show_bug.cgi?id=788673 but this doesn't help you out at this moment.
– egmont
Jan 5 at 9:18
add a comment |
Does it need to be perfect, or just pretty good? Do you have a list of (keyword, color) pairs? Are you prepared to have output slightly delayed, e.g if "failed" is a keyword and the program outputs "fail" and then nothing more for 30 seconds, do you want to see the word fail, which is then erased if "ed" is output and replaced with a coloured failed, or would you accept no output until it is known that the next 2 letters are "ed"?
– icarus
Jan 5 at 5:49
1
I'm not aware of any terminal emulator for Linux that does syntax highlighting on its own, like MobaXterm (Windows) or iTerm2 (macOS) do. There's a feature request for gnome-terminal at bugzilla.gnome.org/show_bug.cgi?id=788673 but this doesn't help you out at this moment.
– egmont
Jan 5 at 9:18
Does it need to be perfect, or just pretty good? Do you have a list of (keyword, color) pairs? Are you prepared to have output slightly delayed, e.g if "failed" is a keyword and the program outputs "fail" and then nothing more for 30 seconds, do you want to see the word fail, which is then erased if "ed" is output and replaced with a coloured failed, or would you accept no output until it is known that the next 2 letters are "ed"?
– icarus
Jan 5 at 5:49
Does it need to be perfect, or just pretty good? Do you have a list of (keyword, color) pairs? Are you prepared to have output slightly delayed, e.g if "failed" is a keyword and the program outputs "fail" and then nothing more for 30 seconds, do you want to see the word fail, which is then erased if "ed" is output and replaced with a coloured failed, or would you accept no output until it is known that the next 2 letters are "ed"?
– icarus
Jan 5 at 5:49
1
1
I'm not aware of any terminal emulator for Linux that does syntax highlighting on its own, like MobaXterm (Windows) or iTerm2 (macOS) do. There's a feature request for gnome-terminal at bugzilla.gnome.org/show_bug.cgi?id=788673 but this doesn't help you out at this moment.
– egmont
Jan 5 at 9:18
I'm not aware of any terminal emulator for Linux that does syntax highlighting on its own, like MobaXterm (Windows) or iTerm2 (macOS) do. There's a feature request for gnome-terminal at bugzilla.gnome.org/show_bug.cgi?id=788673 but this doesn't help you out at this moment.
– egmont
Jan 5 at 9:18
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f492621%2flinux-terminal-keyword-highlighting-similar-to-mobaxterm-without-piping%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f492621%2flinux-terminal-keyword-highlighting-similar-to-mobaxterm-without-piping%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Does it need to be perfect, or just pretty good? Do you have a list of (keyword, color) pairs? Are you prepared to have output slightly delayed, e.g if "failed" is a keyword and the program outputs "fail" and then nothing more for 30 seconds, do you want to see the word fail, which is then erased if "ed" is output and replaced with a coloured failed, or would you accept no output until it is known that the next 2 letters are "ed"?
– icarus
Jan 5 at 5:49
1
I'm not aware of any terminal emulator for Linux that does syntax highlighting on its own, like MobaXterm (Windows) or iTerm2 (macOS) do. There's a feature request for gnome-terminal at bugzilla.gnome.org/show_bug.cgi?id=788673 but this doesn't help you out at this moment.
– egmont
Jan 5 at 9:18