Linux.com

Author Message
Joined: Aug 13, 2008
Posts: 15
Other Topics
Posted Aug 13, 2008 at 1:50:44 AM
Subject: terminal customization..
anyone know of any Linux terminals that do .. [1] background colour highlights command invokations e.g. each successive command & output occurs on alternating increase/decrease in hue. [2] configurable right-click menu i.e. so you can make right clicking on a word allows executing user configurable commands
Back to top Profile Email Website
Shashank Sharma
Joined Jan 01, 1970
Posts: 1657
Location:New Delhi, India

Other Topics
Posted: Aug 16, 2008 3:50:15 PM
Subject: terminal customization..
No. That's too many customizations. I don't think any terminal offers that.

Coauthor of Beginning Fedora: From Novice to Professional published by Apress.

Please follow the Forum Guidelines

Back to top Profile Email Website Yahoo!
alerque
Joined Jun 20, 2007
Posts: 2

Other Topics
Posted: Aug 17, 2008 4:47:57 PM
Subject: terminal customization..
Good afternoon... I disagree that this is not too many customizations, I just think you are approaching the problem from the wrong end. It should not be a terminal's job to highlight commands vs output, that is the shells job. The shell is the program that knows what stuff is commands and what is output. By customizing the shell, ANY terminal can display alternating colors for commands vs outout, and even alternate colors for successive commands. My shell of choice happens to be zsh, and by customizing both the PS1 variable and changing the special preexec() and precmd() functions I am able to customize a lot of the look and feel of both input and output ... for example passing on notices to other programs about what commands have or have not been run, selectively logging command history to shared accounts, etc. As for rick-click menus, this also doesn't seem like the right job for a terminal. A terminal doesn't have very much context for what is happening inside it ... it's just as much gibberish as it looks like to your mother. The most obvious use for such a feature I have is for looking up usage of functions while I am programming. Since I use VIM as an editor, I have it setup to recognize the language I am programming in and with one keystroke I can look up the manual entry for whatever word happens to be under my cursor. You should be able to do this with most major editors. If you need this kind of function in your shell, I suggest using screen as a wrapper to your shell as it can handle having a cursor and could be programed to run custom commands based on what words were copied to it's internal clipboard from the shell output. Caleb
Back to top Profile Email Website ICQ MSN Yahoo! AOL Instant Messenger
Tableless layout Validate XHTML 1.0 Strict Validate CSS Powered by Xaraya