solutionkeron.blogg.se

Screen wrap messed up
Screen wrap messed up












screen wrap messed up
  1. #Screen wrap messed up update#
  2. #Screen wrap messed up plus#

Your prompt contains colors (and maybe other non-printables). Upon deleting a few words, I get some leftovers at the end of the line:įurthermore, if I keep pressing backspace, I can even delete parts of the prompt:Īfter pressing enter (and fixing the end of the command to, ev"), and upon resizing, I get the usual mess: (I am using the command echo "This is a really long sentence, even long than a sentence containing all letters of the alphabet" to make up for the shorter prompt) Upon removing ~/.bashrc, I get the following: usr/share/bash-completion/bash_completion # this, if it's already enabled in /etc/bash.bashrc and /etc/profile # enable programmable completion features (you don't need to enable # See /usr/share/doc/bash-doc/examples in the bash-doc package. # ~/.bash_aliases, instead of adding them here directly. # You may want to put all your additions into a separate file like # Add an "alert" alias for long running commands. Test -r ~/.dircolors & eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" # enable color support of ls and also add handy aliases # If this is an xterm set the title to "$TERM" \w\a\]$PS1" # a case would tend to support setf rather than setaf.) (Lack of such support is extremely rare, and such # We have color support assume it's compliant with Ecma-48 # should be on the output of commands, not on the prompt # off by default to not distract the user: the focus in a terminal window # uncomment for a colored prompt, if the terminal has the capability turned Xterm-color|*-256color) color_prompt=yes # set a fancy prompt (non-color, unless we know we "want" color) # set variable identifying the chroot you work in (used in the prompt below) # make less more friendly for non-text input files, see lesspipe(1) # match all files and zero or more directories and subdirectories. # If set, the pattern "**" used in a pathname expansion context will

#Screen wrap messed up update#

# update the values of LINES and COLUMNS. # check the window size after each command and, if necessary, # for setting history length see HISTSIZE and HISTFILESIZE in bash(1)

screen wrap messed up

# append to the history file, don't overwrite it # don't put duplicate lines or lines starting with space in the history. # If not running interactively, don't do anything # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) Anyway, here it is: # ~/.bashrc: executed by bash(1) for non-login shells. I figure all of this could be related to the ~/.bashrc, even though I just did cp /etc/skel/.bashrc ~/. (The long black boxes are random concatenations of the contents of my prompt.) The content of the terminal then gets randomly copied and concatenated throughout the terminal: It is printed in green though, for whatever reason.Īll of this becomes even worse when I now enlarge and shrink the terminal window a few times.

screen wrap messed up

You can see that the desired sentence with dog instead of doggo is printed. The o" at the end is a display error, as confirmed by pressing enter:

#Screen wrap messed up plus#

The problem is when I now fix the sentence by pressing backspace three times plus double quotes once, the display looks like this: This is halfway okay, even though I would prefer a wrapped display and I could do without the doubling of the line. When I enter long lines in my bash, its display is messed up.įor example, assuming I am in ~/test/test/test/test/test/test/test and I enter echo "The quick brown fox jumps over the lazy doggo" it looks like this: I am using the GNU bash, version 4.4.0(1) on Ubuntu 16.04.














Screen wrap messed up