Hello everyone. I'm the author of the SshConsolePlugin for JEdit.
I'm trying to do a channelShell.setEnv("TERM", "dumb"), so that I
don't have to see all these funny vt100 characters in the console
shell.
It doesn't seem to work. I get this error whenever I try to set an
environment variable.
I get the following exception. Am I doing something wrong?
I tried it first this way:
// Hashtable env = new Hashtable();
// env.put("TERM", "dumb");
// channelShell.setEnv(env);
And later I updated to the latest jsch and tried it this way. No difference
channelShell.setEnv("TERM", "dumb");
11:03:48 AM [AWT-EventQueue-0] [error] Connection:
com.jcraft.jsch.JSchException: failed to send channel request
11:03:48 AM [AWT-EventQueue-0] [error] Connection: at
com.jcraft.jsch.Request.write(Request.java:65)
11:03:48 AM [AWT-EventQueue-0] [error] Connection: at
com.jcraft.jsch.RequestEnv.request(RequestEnv.java:52)
11:03:48 AM [AWT-EventQueue-0] [error] Connection: at
com.jcraft.jsch.ChannelSession.sendRequests(ChannelSession.java:222)
11:03:48 AM [AWT-EventQueue-0] [error] Connection: at
com.jcraft.jsch.ChannelShell.start(ChannelShell.java:44)
11:03:48 AM [AWT-EventQueue-0] [error] Connection: at
com.jcraft.jsch.Channel.connect(Channel.java:200)
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users