Ticket #192 (closed defect: worksforme)

Opened 6 years ago

Last modified 10 months ago

ncurses error?

Reported by: dummyusr@hotmail.com Owned by: rakshasa
Priority: high Component: libtorrent
Version: HEAD Severity: critical
Keywords: up/down/right/left keys Cc:

Description

when i use dtach

somethimes when reattaching to rtorrent the up/down/right/left keys gets converted to upload limit modifier and i cannot do anything but kill the process

thnx for your attention

Change History

  Changed 6 years ago by anonymous

in version *** rTorrent 0.4.2 - libTorrent 0.8.2 ***

  Changed 6 years ago by rakshasa

  • status changed from new to closed
  • resolution set to worksforme

Hmm... propably not a problem with the client. Closing unless there's any other information.

  Changed 5 years ago by anonymous

  • status changed from closed to reopened
  • resolution worksforme deleted

I appreciate that re-opening this log is annoying. But I have the exact problem. *** rTorrent 0.7.2 - libTorrent 0.11.2 ***

This happens when using dtach after leaving it detached for a few hours. Keys seem to be completely mixed up.. To confirm the up/down/right/left keys modify the upload/download limit. Ctrl-P seems to toggle the 3 dots around torrents in main view but I cannot use anything else.

I use dtach using the following command line: dtach -A /usr/share/dtach/sess/sess -r winch rtorrent

Torrents are added from a watch directory.

Thanks sincerely for your great work rakshasa. I cannot get over the resource usage on this sucker - it's so efficient.

My OS is openslug 3.1 on nslu2 (Please don't tell me to buy a real computer - this one works sweet)

  Changed 5 years ago by rakshasa

  • status changed from reopened to closed
  • resolution set to invalid

Not that I don't think there's a problem, it's just not a problem with rtorrent. My guess is dtach doesn't entirely like your terminal or something.

  Changed 5 years ago by anonymous

Same here - gentoo box, dtach, tested with various terminals. It works at the first re-attach or so, staragely.

  Changed 4 years ago by gentoo_nk

  • status changed from closed to reopened
  • resolution invalid deleted

First of all, thank you rakshasa for this great program! I 've tried many BitTorrent clients and this is the first time I seriously consider switching from Azureus to something else :-)

Sorry for re-re-opening this bug but I've got exactly the same problem. It's quite serious because rTorrent is almost unusable wihout the arrow keys and there are many users who prefer using dtach instead of screen, since it is much smaller and easier to use.

Some of the previous posters reported that the arrow keys were working before detaching or at the first re-attach. That's not the case here; they don't work correctly at all. Another user reported the problem when using the Alt+arrow combination (http://libtorrent.rakshasa.no/ticket/653#comment:2). I have the same symptoms whether I use the Alt key or not.

After some googling I found that you can use Ctrl-F, Ctrl-B, Ctrl-P and Ctrl-N to replace the arrow keys but this is not an acceptable solution. ( http://lists.samba.org/archive/linux/2006-November/016552.html)

Dtach seems to work OK with other fullscreen apps, like "less", so something has to be wrong with rtorrent. I don't know for sure if it is a dtach problem or an rtorrent problem, but hopefully it wouldn't be difficult to implement a workaround. Unfortunately I don't have the knowledge to fix it myseft.

Versions: rTorrent 0.7.8, libTorrent 0.11.8, dtach 0.7

Terminals tested: rxvt-unicode (urxvt), gnome-terminal, linux framebuffer console

OS: Gentoo Linux on AMD64 (2.6.22 kernel)

PS. Shouldn't the "component" field of this ticket be rtorrent instead of libtorrent?

  Changed 4 years ago by gentoo_nk

Well, that's really weird and really frustrating and embarrassing...

I tested dtach once again and now I have the same problem with "less", although it used to work fine. It seems to be a dtach problem after all... and it's a non-deterministic one!

I really hope that an acceptable workaround will be found.

Thank you again for your attention.

  Changed 4 years ago by linefeed

I have also noticed this problem. There is a post on the mailing list about a similar problem with a workaround:  http://rakshasa.no/pipermail/libtorrent-devel/2007-June/001186.html

I have not had a chance to test this myself, but it seems reasonable. I suspect what is happening is that when rtorrent is started, it is putting the terminal into keypad transmit mode (according to the tput docs), and if you then go and start a new terminal and re-attach, the new terminal is not in the correct mode and is interpreting keypresses differently. As such, this is not a bug with rtorrent. Also AFAIK screen does some terminal emulation, and probably puts the terminal in the correct mode when you reattach so it does not exhibit this problem

  Changed 4 years ago by gentoo_nk

Thank you linefeed. I tried that workaround and it works fine at first glance.

Maybe adding it to the wiki would be a good idea...

  Changed 4 years ago by anonymous

I suggest to those having this problem, esp. gentoo users, that you completely close (not detach, exit) all screen/dtach sessions and restart them. If you've been running them forever (as I had) you probably have deprecated copies running. Restarting them all fixed this problem for me. If you still have the problem after doing so, post again.

rak might consider looking up conflicts between old screen/dtach/ncurses.

The workaround above seems to address this:  http://www.mpimf-heidelberg.mpg.de/~rohm/computing/mpimf/notes/terminal.html

  Changed 4 years ago by m4v

I have the same problem while using cmus (a ncurses music player) so this is most likely a dtach bug.

in reply to: ↑ 2002   Changed 3 years ago by marvell

ZeQzlr? hi! mi site is  http://norffg.com see you!

  Changed 3 years ago by anonymous

xterm kept giving me the same problem. But simply setting TERM to linux works for me without tput:

env TERM=linux dtach -n /tmp/rtorrent rtorrent

Learned the trick from  http://bugs.gentoo.org/show_bug.cgi?id=256026#c11

  Changed 2 years ago by rakshasa

  • status changed from reopened to closed
  • resolution set to worksforme

Feel free to discuss this, but don't reopen the ticket as it's not a problem _I'm_ going to be fixing.

  Changed 20 months ago by anonymous

Thank you for sharing. Here are some ways to learn Spanish. Learn Spanish major and more reading, listening and writing. Also use this rosetta stone spanish software to assist you. rosetta stone spanish

  Changed 20 months ago by anonymous

We offer new-style christian louboutin,Fashion and discount platform with best quality and no tax shipping.Our mission is to provide the highest quality with lowest price.Goods and merchandise sold both in person or online are subject to the same qualityassuranceagreement.We are committed to assuring customer satisfaction.Clients will be expected to accept any fees.We thank you our valued customer for your current and future business We sell  christian louboutinboots,discount christian louboutin Sale,Giuseppe anotti Shoes sandals at All the louboutin shoes are brand new and beautiful.  Christian Louboutin Shoes

  Changed 18 months ago by Herve Leger

Are you always vexed about wearing what kind of dress at a banquet?

Herve Leger bandage dress online store eliminates your worries. Ladies who is beautiful and noble may choose Herve Leger bandage dress. The dress highlights your perfect feminine body curve. If you wear this dress, it will send out your inherent glamour. It is specially designed for you and meets your noble taste. Wherever you go, you will be the focus. If you haven't a suitable

dress to attend a banquet and want to buy one now, Herve Leger bandage

dress online store is your best choice  http://www.buyherveleger.net/

  Changed 17 months ago by anonymous

  Changed 17 months ago by MBT Sport Shoes

Time, MBT Sport Shoes to choose the right pair of MBT sandals own good, to let their feet rest rest.  http://www.officialmbts.com/

  Changed 16 months ago by anonymous

  Changed 16 months ago by anonymous

  Changed 16 months ago by anonymous

erve Leger bandage dress online store eliminates your worries. Ladies who is beautiful and noble may choose Herve Leger bandage dress. The dress highlights your perfect feminine body curve. If you wear this dress, it will send out your inherent glamour. It is specially designed for you and meets your noble taste. Wherever you go, you will be the focus.  christian louboutin|  Christian Louboutin discount|  Christian Louboutin boots| If you haven't a suitable

  Changed 16 months ago by anonymous

If I speak in the Cheap Authentic NFL Jerseys tongues of men and of angels, but have not love, I am only a resounding gong or a clanging cymbal. If I have the gift of prophecy and can fathom all mysteries and all Official NFL Jerseys knowledge, and if I have a faith that can move mountains, but have not love, I am nothing. If I give all I possess to the poor and surrender my USA Jerseys Shop body to the flames,but have not love, I gain nothing.Love is patient, NFL Jerseys love is kind. It does not envy, it does not boast, it is not proud. It is not rude, it is not self-seeking, it is not easily angered,  Christian Louboutin|  Christian Louboutin boots|  Christian Louboutin discount|  Christian Louboutin boots|it NHL Jerseys keeps no record of wrongs. Love does not delight in evil but rejoices with the truth. It always protects, always trusts, always MLB Jerseys hopes, always perseveres.Love never NHL Hockey Jerseys fails. But where there are prophecies, they will cease; where there are tongues, they will be stilled; where there is knowledge, it will pass away. For we know in part and we prophesy in MLB Baseball Jerseys

  Changed 13 months ago by anonymous

FWIW, I get the same problem using Mac OS X's built-in Terminal, running a "screen" session inside it, SSHing to a remote Linux server with another "screen" session, and running rtorrent there.

also, what's with all the spam here?

  Changed 11 months ago by Mike <blogcommentz@gmail.com>

As everybody understands respect is essentially the most necessary between people's existence. Only respect one another to have along nicely and I consider that leaving one's opinion is really a behavior of respect. Do you imagine so?  Dubai real estate

  Changed 10 months ago by Dubai Properties solidhomedubaiweb@gmail.com

Easily, the publish is really the greatest on this laudable topic. I concur with your conclusions and will thirstily look forward to your future updates. Saying thanks will not just be sufficient, for the fantastic lucidity in your writing. I will instantly grab your rss feed to stay privy of any updates. Solid work and much success in your business enterprise!

Note: See TracTickets for help on using tickets.