You are not logged in.

#1 2019-04-21 10:33:03

seb-jones
Member
Registered: 2019-04-13
Posts: 8

[SOLVED] URxvt - Make input wrap to newline when exceeding window size

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

#2 2019-04-21 10:58:32

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: [SOLVED] URxvt - Make input wrap to newline when exceeding window size

seb-jones wrote:

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

#3 2019-04-21 12:12:55

seth
Member
Registered: 2012-09-03
Posts: 51,017

Re: [SOLVED] URxvt - Make input wrap to newline when exceeding window size

And your $PS1
I'll take a random guess and claim you're using zsh and OMZ…

Offline

#4 2019-04-21 12:36:02

seb-jones
Member
Registered: 2019-04-13
Posts: 8

Re: [SOLVED] URxvt - Make input wrap to newline when exceeding window size

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

#5 2019-04-21 12:46:52

seb-jones
Member
Registered: 2019-04-13
Posts: 8

Re: [SOLVED] URxvt - Make input wrap to newline when exceeding window size

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

#6 2019-04-21 12:57:05

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: [SOLVED] URxvt - Make input wrap to newline when exceeding window size

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

#7 2019-04-21 13:45:25

seb-jones
Member
Registered: 2019-04-13
Posts: 8

Re: [SOLVED] URxvt - Make input wrap to newline when exceeding window size

This is life-changing! Thanks Trilby smile

Offline

Board footer

Powered by FluxBB