You are not logged in.
Currently when I type a long command that exceeds the width of the window, URxvt will return to the start of the line and overwrite the characters on the left side of the input. Is it possible to make URxvt wrap to a newline when typing long commands?
Thanks
Seb
Last edited by seb-jones (2019-04-21 12:47:11)
Offline
Is it possible to make URxvt wrap to a newline when typing long commands?
It did that automatically last time I used it.
Please post your current urxvt configuration and also the output of
echo $TERM
Offline
And your $PS1
I'll take a random guess and claim you're using zsh and OMZ…
Offline
Result of `echo $TERM`:
rxvt-unicode-256color
Result of `echo $PS1`:
\n\e[1m[\u] \e[3;34m\w \e[m\e\n\e[1m$\e[m
Contents of .Xresources:
urxvt.background: #101010
urxvt.foreground: #ffffff
urxvt*font: xft:DejaVu Sans Mono-10
urxvt*boldFont: xft:DejaVu Sans Mono:bold:autohint=true
urxvt*italicFont: xft:DejaVu Sans Mono:italic:autohint=true
urxvt*boldItalicFont: xft:DejaVu Sans Mono:italic:bold:autohint=true
urxvt*intensityStyles: true
urxvt*skipBuiltinGlyphs: true
urxvt*linespace: 0
urxvt.keysym.Control-Left: \033[1;5D
urxvt.keysym.Control-Right: \033[1;5C
urxvt.keysym.Control-f: command:\033]721;16\007
urxvt.keysym.Control-b: command:\033]720;16\007
urxvt*color0: #33303b
urxvt*color8: #4f4b58
urxvt*color1: #ff5c57
urxvt*color9: #ff5c57
urxvt*color2: #5af78e
urxvt*color10: #5af78e
urxvt*color3: #f3f99d
urxvt*color11: #f3f99d
urxvt*color4: #57c7ff
urxvt*color12: #57c7ff
urxvt*color5: #ff6ac1
urxvt*color13: #ff6ac1
urxvt*color6: #9aedfe
urxvt*color14: #9aedfe
urxvt*color7: #eff0eb
urxvt*color15: #eff0eb
URxvt.scrollBar: false
URxvt.saveLines: 10000
I am using BASH.
Thanks!
Seb
Offline
Changing my PS1 to this seems to have fixed it:
\r\n\e[1m[\u] \e[3;34m\w\e[m\n\$
It does mean that my dollar sign won't be in bold but I can live with that.
Thanks for pointing me in the right direction!
Seb
Offline
Why live without it. Just do it right:
https://wiki.archlinux.org/index.php/Ba … _sequences
Last edited by Trilby (2019-04-21 12:57:39)
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
This is life-changing! Thanks Trilby
Offline