Comments (11)
Maybe it's a $TERM
environment variable issue, that we had in tmux as well.
I run rtorrent-ps in tmux all the time.
Take a look at the last comment of this: https://groups.google.com/forum/#!topic/pyroscope-users/_5yMqjIHcpo
The full config files (init script, tmux conf, .profile, etc) are here: https://github.com/chros73/rtorrent-ps
So, when run this command echo $TERM
through a remote Mac OS X terminal:
- outside tmux, it reports: xterm-256color
- inside tmux, it reports: screen-256color
It also works fine in JuiceSSH (android SSH client).
from rtorrent-ps.
This is a bug in your terminal software, which I cannot do anything about.
from rtorrent-ps.
To:chros73 thank you for your reply. I confirm that the $TERM is screen-256color.(tmux new -s $SESSION_NM "export TERM=screen-256color;rtorrent -n -o import=$PWD/rtorrent.rc";)
And i want to know if you resize the terminal window, what's the result.
from rtorrent-ps.
- Is this the start up command of yours?
tmux new -s $SESSION_NM "export TERM=screen-256color;rtorrent -n -o import=$PWD/rtorrent.rc";
If it is then I think the TERM command is the problem in it. I think you shouldn't specify the TERM variable anywhere! Specify the terminal string inside your tmux conf (or in the command line, if you can do it)!
a) in tmux conf you need:set -g default-terminal "screen-256color"
b) try out this command (we don't specify the TERM variable outside):
tmux -2u new-session -d -s $SESSION_NM -n 'rT-PS' "rtorrent -n -o import=$PWD/rtorrent.rc";
- I couldn't try out xshell, but resizing the terminal window (native Ubuntu terminal, putty, Mac OS X terminal, JuiceSSH terminal) is working flawlessly for me with those config files. So it should be fine in xshell as well, until it reports a terminal string that is available on your server (e.g. xterm-256color).
Report back if it's fixing your problem as well.
from rtorrent-ps.
chros73, it can't resolve my problem.
a) in tmux conf you need: set -g default-terminal "screen-256color"
has the same result.
b) try out this command (we don't specify the TERM variable outside):
has the error: rtorrent: bold bright red: your terminal only supports 8 colors.
from rtorrent-ps.
Hmmm, that's strange.
Do you modify a script to start rtorrent-ps? If you do then I think it doesn't use your tmux conf at all.
A. I've tried out quickly XShell 5 on Windows 8.1 (if we are talking about the same thing), after a fresh install I entered IP, crendetials, everything else was default: it works fine for me with the above linked configs (rendering, scrolling, resizing is fine).
B. you can easily try out without issuing your init/startup script:
- connect to your remote server with Xshell
- do not start or attach a tmux sessio, but run
echo $TERM
: it should display:xterm
! - start a simple tmux session with:
tmux
: it should display:screen-256color
! (if you put that line in your tmux config AND your session is using the tmux config) - just start rtorrent with this:
rtorrent -n -o import=/home/youruser/rtorrent.rc
: it should run well, without any problem.
If it's all good, then your startup script doesn't read your tmux config.
from rtorrent-ps.
I try this out:
1.create a new session in the xshell, and modify the ip and username only.
2.login with this session, and export TERM=screen-256color
3.execute rtorrent -n -o import=/home/youruser/rtorrent.rc
has the same result.
I also try what you say, and confirmed that it use the tmux conf in the tmux.
I think it's xshell's problem. because it's worked in the securecrt terminal with the same thing.(but resize is not work)
can you send me your rtorrent source? and if possible attach some xshell's result.(hard copy)
Thank you.
from rtorrent-ps.
"2.login with this session, and export TERM=screen-256color"
What I'm saying is: I think this is the cause of the problem!!!! Don't do this!!!
My rtorrent-ps 0.9.6 is running on Ubuntu 14.04, I have built it with pyroscope's build script. I have already posted all my config files (see above).
This is in xshell5 on Win 8.1:
This is in putty on Win 8.1 (what I'm using):
Try out quickly in Putty how it behaves: https://github.com/chros73/rtorrent-ps/tree/master/windows-8.1
And 1 thing you can try out: install mc
(Midnight Commander) and see whether it has similar rendering problems like rtorrent-ps has (since it using the same ncurses interface). If it has the same, and you applied all the changes I told you, then probably the packages has problems on you system (tmux, ncurses, etc).
PS: you can post your configs somewhere, like pastebin.
from rtorrent-ps.
"2.login with this session, and export TERM=screen-256color"
What I'm saying is: I think this is the cause of the problem!!!! Don't do this!!!
->because i want to test it without tmux. and if not set the TERM, it will have error of "rtorrent: bold bright red: your terminal only supports 8 colors."
i confirmed that it's the problem of the font and special character. If i modify the ui_pyroscope.cc(row 158:♯->#, row 159: ·->.) then everything is ok.
And i have installed the font follow this link:https://github.com/chros73/rtorrent-ps/tree/master/windows-8.1
If i run mc with the command: mc -a, the result is ok, else, it has the result like rtorrent-ps.
from rtorrent-ps.
"If i modify the ui_pyroscope.cc(row 158:♯->#, row 159: ·->.) then everything is ok."
So, is it solved for you then or not? (Sorry, I don't quite understand which case was good or not.)
from rtorrent-ps.
sorry for my poort english. it's solved if i make change to the ui_pyroscope.cc
from rtorrent-ps.
Related Issues (20)
- DHT unusable on armhf, need help recompiling HOT 2
- Typo in xmlrpc-c-advanced-2954/common.mk
- Latest, unable to build centos 6.5. HOT 4
- Deleting files, or make large changes makes ruTorrent/rTorrent time out HOT 1
- Bad method Key Error
- Weird issue - seeds "frozen" or not killed based on slots.. not re-added to the queue HOT 2
- rtorrent-ps with pyroscope... HOT 1
- Read past initial payload after incoming encrypted handshake. HOT 1
- See schedules already set HOT 1
- Bug in libtorrent (rakshasa) <0.9.8 HOT 1
- Buildscript does not work on arch linux HOT 2
- rtorrent status in terminal window's title
- Is this still in maintenance? HOT 1
- Feature: Add load.import command
- xmplrpc-c does not build on Debian Bullseye aarch64 (via Docker)
- bintray binaries unavailable HOT 2
- Migrate from rtorrent to rtorrent-ps
- Specifying `--json -o active` along with `--start` generates a python dict related error
- Will there ever be new binaries? HOT 1
- Unable to build rtorrent-ps on ODROID-HC4 (Debian 10) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rtorrent-ps.