Ticket #192 (closed defect: worksforme)

Opened 4 years ago

Last modified 5 weeks ago

ncurses error?

Reported by: dummyusr@hotmail.com Owned by: rakshasa
Priority: high Milestone:
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

Attachments

Change History

  Changed 4 years ago by anonymous

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

  Changed 4 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 4 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 4 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 3 years ago by anonymous

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

  Changed 3 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 3 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 3 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 3 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 3 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 2 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 15 months ago by marvell

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

  Changed 14 months 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 10 months 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 3 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 3 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 5 weeks 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/

Add/Change #192 (ncurses error?)

Author


E-mail address and user name can be saved in the Preferences.


Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.