java - Ncurses not supporting color -



java - Ncurses not supporting color -

i writing android ssh client. have terminal object controls view , ssh object send commands server.

my problem terminal displays in color during sessions when ncurses application opens, (tmux example), terminal displays in black , white.

i able find this: http://invisible-island.net/ncurses/ncurses.faq.html#white_black not sure means. can guide me on more documentation on this, or if there open source java clients back upwards feature. not sure how prepare this.

ok, launched application without term environmental variable set appropriately, , meant during initialization routines remote operating scheme believed wasn't talking terminal back upwards colors.

now have set correctly, colors work. congratulations! however, setting within application going quite trick. because needs set before application launches. otherwise, when application launches, low level libraries linking query "environment" see kind of terminal has, determines kind of terminal codes emitted application.

this happens before app launches; so, effectively, can't application. however, real solution bit more interesting.

ssh makes few assumptions display capabilities of remote machine. best way "fix" have ssh client set terminal type according ssh client's capabilities. check ssh client configuration see if can pass in "better" terminal type.

in fact, having host operating scheme assume client's capabilities create issues; however, demanding every ssh client configured hand off it's terminal capabilities can logistically impossible. so, may want strike compromise. on ssh server machine, seek dropping "wrapper script" launch application color terminal script. read like

#!/bin/sh term=xterm-256color export term exec launch-app "$@"

and saved launch-app-color or similar.

java android ssh terminal ncurses

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -