You are not logged in.

#1 2015-03-04 03:07:40

space-gh0st
Member
From: Michigan
Registered: 2015-03-02
Posts: 3

Strange characters after using ncurses applications

So for a reason unknown to me all of the sudden when running an ncurses application in st(terminal emulator) it does some interesting things... I think this could possibly be due to a patch I applied to it(everything is a-okay in a tty) but I did that quite some time ago and must have ran an ncurses application in a new terminal after that(regardless I will explore this possiblity), but in the case that a mistake in my patch wasn't the cause if any of you have experienced something similar I would appreciate your input.

Before running an ncurses app:
http://a.pomf.se/jcugpe.png

While running the app:
http://a.pomf.se/ghooud.png

After the application is closed:
http://a.pomf.se/jhrvrz.png




-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --

Offline

#2 2015-03-04 03:17:08

nullified
Member
From: Massachusetts, USA
Registered: 2013-12-09
Posts: 468

Re: Strange characters after using ncurses applications

Does it only happen in st, or have you tried ncurses apps in other terminal emulators? Do you see anything in the logs when you run this ncurses program? Whe you say "an ncurses app" do you mean a particular one? Or any?


"We may say most aptly, that the Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves." - Ada Lovelace

Offline

#3 2015-03-04 03:29:32

space-gh0st
Member
From: Michigan
Registered: 2015-03-02
Posts: 3

Re: Strange characters after using ncurses applications

nullified wrote:

Does it only happen in st, or have you tried ncurses apps in other terminal emulators? Do you see anything in the logs when you run this ncurses program? Whe you say "an ncurses app" do you mean a particular one? Or any?


1. Yes it seems to only be occurring in st(I tested it with rxvt-unicode).

2. What logs would I look at for something like this?

3. Seemingly any, I tested it with ncmpcpp, htop, & alsamixer

So, I just deleted my old st/ directory in my Source folder, and uninstalled the version I had with 'pacman -Rs st'.
I then grabbed the tarball from the AUR page ""https://aur.archlinux.org/packages/st/ and rebuilt and installed the package... for some reason the issue is still ocurring, I cannot think of what could have caused this between when everything was fine and now. It seems my patching had nothing to do with it unless there is some sort of caching going on?

*EDIT*  Strangely enough I grabbed the latest source from "http://git.suckless.org/st" compiled it and it is not giving me the issue? hmmm

*EDIT 2* So the PKGBUILD grabs the source from: http://dl.suckless.org/st/st-0.5.tar.gz which when I decompress and compile it by hand(no makepkg interactions) does give me the strange characters issue

St compiled from the .tar.gz on the LEFT & St compiled from the git source on the RIGHT



I'm not sure what could be the issue now, I'd used the .tar.gz version with 0 issues for 2~ish days with no problems.

Last edited by jasonwryan (2015-03-04 04:47:47)

Offline

#4 2015-03-04 04:48:21

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Strange characters after using ncurses applications

Read the Forum Etiquette and the link I added to your first post and stop posting huge screenshots.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2015-03-04 12:51:35

space-gh0st
Member
From: Michigan
Registered: 2015-03-02
Posts: 3

Re: Strange characters after using ncurses applications

jasonwryan wrote:

Read the Forum Etiquette and the link I added to your first post and stop posting huge screenshots.

I'd had the thought but I didn't remember how to make the "images click to expand", when I previewed the post the images didn't look big at all... so I decided to just post it instead of looking up how to make them "click to expand" or just post them as links like you've done. My bad, I knew the images were big but the way they were displayed to me made them look quite reasonable in size.

Last edited by space-gh0st (2015-03-04 12:58:25)

Offline

#6 2015-04-11 23:45:56

greggyb
Member
Registered: 2014-08-28
Posts: 8

Re: Strange characters after using ncurses applications

I am seeing the same sort of garbled text in ST when using rtorrent, but the problem goes away running the program within a Tmux session (which I use all the time anyway).

Perhaps the terminfo is not playing nice with Ncurses.

Offline

Board footer

Powered by FluxBB