urxvt and prompt position

As rxvt-unicode users know, since version 9.31, the log in prompt can turn up in odd positions. In my case, it happens with dwm, where a terminal is the full height of the screen. The login prompt shows up in the middle, rather than the top.
I had, in past, posted that a linux patch that I'd found on the Arch Wiki helped and would compile on FreeBSD, but l recently, I found a lazier solution. Also on the Arch Wiki page, https://wiki.archlinux.org/title/Rxvt-unicode, in the trouble shooting section, under wrong shell prompt placement after upgrading to 9.31, they mention fixing it by adding
a line in $HOME/.Xdefaults (or $HOME/.Xresources. The line is
Code:
URxvt*geometry: 80x-1

As the wiki article says, every environment is different so this may not work for some. I also use openbox and if I have this entry in there, it messes up, not only the placement but the terminal size. Actually, in openbox, where the terminal is a standard 80x24, I don't have this problem, so on a machine where I just use openbox, I don't bother with the .Xdefaults entry.

These days, I find that I use alacritty as my main terminal, but every once awhile I like to go back to urxvt. In this case, I saw that there had been an update, from 9.31, to 9.32 and wondered if the issue had been fixed. When I found it hadn't, I once again, went back to the Arch wiki article as I'd forgotten how I fixed it last time.

TLDR; If using dwm or another window manager that has the terminal full height, urxvt shows the prompt in the middle of the screen. This can be fixed by adding URxvt*geometry: 80x -1. If using openbox, fluxbox, or anything else with an 80x24 terminal, this probably won't affect you.
 
I remember that we already had this discussion 3 years ago (ouch time flies), this is not encouraging.
IMO the author probably doesn't use rxvt the same way than you(and most of us?) do, therefore it seems that the bug doesn't bother him at all and he probably won't fix it, otherwise it would have been done already long time ago.

I enjoyed rxvt for years because it's fast and light but after a while facing this bug I've stopped using it, looked at the mailing list from time to time to see how things evolved and finally quit doing that too because after a year or so the situation was exactly the same.
 
That's why I use alacritty mostly. Just, I saw it had been updated, and thought I'd try again. However as drhowarddrfine's post shows, it doesn't always work. And going back to that discussing that gotnull mentions, I see it was a lot of the same people. As gotnull says, time flies. And I see the solution I mentioned back then, using geometry 400x400 works for me, (on dwm). drhowarddrfine, is that one worth trying? Just use 400x400 instead of the 80x-1. Although I don't know how it will work on i3.
 
It is long time when I use urxvt, I am using xterm but this time I never had problem but which version I had I forgot.
Settings which I had:
Code:
URxvt.depth:                32
URxvt.geometry:             105x27
URxvt.transparent:          false
URxvt.loginShell:           false
URxvt.visualBell:           true
URxvt.termName:             rxvt-unicode-256color

! Fonts
URxvt*font:                 xft:Hack:pixelsize=18
URxvt*boldFont:             xft:Hack:pixelsize=18
URxvt.letterSpace:          -1
 
Which desktop or window manager do you use? I've found. that with openbox, where the terminal seems to default to 80x24, that the prompt is where it should be. But I think gotnull is right-- the developer isn't bother by it, (my guess is it's only a problem with tiling window managers), and so hasn't seen a need to fix it.
 
Openbox

autostart

Code:
(sleep 2; urxvt -name quickterm \
      -fn 'xft:***:size=12' \
      -tr -sh 20 \
      -sb +sr -geometry 80x7-26-226) &
It is a small window for quickly typing in commands.
It is unobtrusive and located in the bottom-left corner.

Also the
.Xresources global definitions for Xterm and UXterm
For all sessions
 
In my somewhat limited experience for what I do, with openbox the default urvt has a typical prompt, that is, at the top of the terminal.
drhowarddrfine, I find that I like alacritty. Sigh, I may as well spam my own https://srobb.net/alacritty.html. Rathe
than configure .Xdefaults you have a $HOME/.config/alacritty/alacritty.toml. I've not used i3 for awhile, but pretty sure alacritty will give you what you want.

My own $HOME/.config/alacritty/alcritty.toml

[window] decorations = "Full" [window.dimensions] columns = 90 lines = 24 [font] size = 11.25 [font.normal] family = "Liberation Mono" style = "Regular" [colors.primary] background = "#171421" foreground = "#FFBF00" [colors.cursor] cursor = "#ffffff" #[keyboard] #bindings = [ # { key = "ArrowRight", mods = "Control|Shift", chars = "→" }, # { key = "ArrowLeft", mods = "Control|Shift", chars = "←" }, # { key = "ArrowUp", mods = "Control|Shift", chars = "↑" }, # { key = "ArrowDown", mods = "Control|Shift", chars = "↓" }, # { key = "Enter", mods = "Control|Shift", chars = "↵ " }, #] [[hints.enabled]] command = "xdg-open" # On Linux/BSD hyperlinks = true post_processing = true persist = false mouse.enabled = false binding = { key = "u", mods = "Alt" } regex = "(ipfs:|ipns:|magnet:|mailto:|gemini://|gopher://|https://|http://|news:|file:|git://|ssh:|ftp://)[^\u0000-\u001F\u007F-\u009F<>\"\\s{-}\\^⟨⟩`]+"

Most of that are defaults. Colors mimic the old console amber on black. I think the decorations at top were chosen because in openbox, I had to have that to toggle decorations, but I don't remember, having used it in dwm for so long. And, on occasion, dwl. In either case it just automatically takes all available space, like most tiling managers.
 
Back
Top