Tag Info

New answers tagged

0

Click on the System menu at the upper left corner of the PuTTY window. Select Change Settings > Window > Colours. In the box that says "Select a colour to adjust", choose ANSI Blue and click the Modify Button. Slide the black arrow on the right up until you see a lighter shade of blue that you like. Click OK. Perform the same steps for ANSI Blue Bold so you ...


2

You can access environment variables in your vimrc using $NAME. ssh sets the environment variable SSH_CONNECTION within an SSH session to non-empty metadata about the connection. You can combine these two to run configuration code based on whether you're accessing vim over SSH or not: if $SSH_CONNECTION colorscheme solarized endif The body of the if ...


0

my .c is not so hot, but from reading around inside http://git.savannah.gnu.org/cgit/bash.git/snapshot/bash-master.tar.gz, it looks to me like COMPREPLY is nothing more than non-actioned text data. iow, even getting an Escape in there correctly ends up being printed as a non-magical/non-special representation of the characters we use to express them. like ...


0

Based on @uloBasEI answer, I've tried to use ... | perl ... | perl ..., but Linux pipe gets a bit crazy and is too slow. If I put all rules in only one perl command, it works fine. For example, create a perl file colorTail.pl as below: #!/usr/bin/perl -w while(<STDIN>) { my $line = $_; chomp($line); for($line){ ...


0

You can try dircolors -p >.dircolors It also can solve the problem


2

The option you're looking for is called mode-style. For example, entering :set mode-style "fg=red,bg=blue" in the tmux command prompt and selecting something from man tmux yields the following result: Note that this option also affects the display of the line counter (here [0/11]) in the upper right corner of the pane in copy-mode.


0

navigate to /home/[user], show hidden files open .bashrc in text-editor as root. change #force_color_prompt=yes to force_color_prompt=yes (ie. uncomment the line~43) now you may change the color scheme using sh theme-file.sh, dconf editor or by running individual commands for foreground,background and palette colors. Source: ...


1

This seems to be a question with the XY-problem - it's not asking the right thing to get the desired solution: Assume the output is colored, and the empty part of the screen is of different color or filled with a character. Think about how you expect the output to look for these cases: An empty line? Lines filled with only space characters? Lines ...


7

With zsh on terminals that support 16 colors or more à la xterm: preexec() printf '\e[90m' # set foreground color to grey before running # the command precmd() printf '\e[m' # reset the foreground color before issuing the # next prompt. Note that commands may change the terminal's foreground color ...


8

STDOUT and STDERR don't have colors. What has color is your terminal (emulator); it has one foreground (and one background color) set at a time. It should also be noted that STDOUT and STDERR are not singular -- they're per process output streams. There is no global STDOUT that applies to all programs. These streams are routed to your terminal, but they ...


1

With bash, this ought to pass sed appropriate arguments, I think: sed $'s,\x1b\\[[0-9;]*[a-zA-Z],,g' Or, more portably to other shells, you could try: sed "s,$(printf '\033')\\[[0-9;]*[a-zA-Z],,g" Or just putting an escape byte directly into the string by typing Ctrl-vEsc instead of typing \x1b. Note, though, that this sed statement removes more than ...



Top 50 recent answers are included