Jump to content
Muxe Inc Forums
Sign in to follow this  
Basil/2

Ndn Under Linux And Putty

Recommended Posts

Basil/2    0

I access NDN/Linux from Windows XP via smal program called Putty. It works, but lots of keys don't work. At least:

- every key with Shift

- fast search by single Alt

- Ctrl-PgUp/Dn (screen jumps like scrolling, if I disable Putty's scrolling it doesn't jump but keys still don't work)

 

Since I never run NDN on pure Linux (without remove access), I don't know is it NDN's problem or I just have bad Putty settings.

 

So please can you tell how to setup Putty properly?

 

 

P.S. NDN 2.31.2699, Linux Fedora 8, PuTTY 0.60.

Share this post


Link to post
Share on other sites
dandv    0
I access NDN/Linux from Windows XP via smal program called Putty. It works, but lots of keys don't work.

 

Lots of keys and key combinations just don't work through terminal emulators, in any application. Try for comparison Midnight Commander and launch it through ZOC or XShell.

 

ZOC can remap the keyboard completely, which may help.

Share this post


Link to post
Share on other sites
Basil/2    0
ZOC can remap the keyboard completely, which may help.

I tryed Zoc but it works even worse - it only shows file under cursor, not a panel, with all settings I used.

Do you have NDN working via Zoc? Do you have shift+arrows and ctrl+PgUp working with Zoc?

(could you please provide Zoc ??? in that case)

Share this post


Link to post
Share on other sites
Basil/2    0

Hi again, I tryed NDN on Ubuntu (9.04) directly and reveal strange thing:

 

Arrows don't work at all! :(

 

Enter works, mouse works(!) but arrows are not.

Why this happens and how to resolve it?

Share this post


Link to post
Share on other sites
dandv    0
Hi again, I tryed NDN on Ubuntu (9.04) directly and reveal strange thing:

 

Arrows don't work at all! :(

 

Enter works, mouse works(!) but arrows are not.

Why this happens and how to resolve it?

 

The cause is probably the terminal setting. Try setting it in your terminal emulator to 'Xterm' or 'Linux' and see which works better. Does pressing the arrows output some sequence of odd characters like "~18;]" ?

Share this post


Link to post
Share on other sites
Basil/2    0
The cause is probably the terminal setting. Try setting it in your terminal emulator to 'Xterm' or 'Linux' and see which works better. Does pressing the arrows output some sequence of odd characters like "~18;]" ?

I run NDN on Ubuntu itself, without remote access - just in Ubuntu terminal window. It has no emulator settings (like Putty and others have).

I also tryed MC there and it works perfectly, at least arrows work. I got no odd chars like "~18" as well :)

 

 

P.S. Was tryed to reveal MP3-tag code page - it was nightmare since no one ubuntu's editor opened mp3-file, and MC knows nothing about coding. I had to copy file to my computer with Windows and test codepage there by using NDN. :(

Share this post


Link to post
Share on other sites

Hi Basil & Dan (thanks for helping out),

 

Lots of keys and key combinations just don't work through terminal emulators, in any application. Try for comparison Midnight Commander and launch it through ZOC or XShell.

 

I always fear those topics, since I am having a hard time to remember the Linux specifics...

 

A) Real LINUX terminals

NDN only really works like DOS/WINDOWS in a real LINUX terminal, and only when starting it with "sudo ndn ...".

With "real" terminal I mean the text window you see after pressing ALT+CTRL+1-6.

ALT-CTRL-7 shoud bring you to the X-Window system.

 

B) X-Window terminals

I have quite some problems with these terminals (emulators to be exact).

Please see the bottom of the NDN online help "Supported Operating Systems" for

a detailed list. I will soon try again to get all this fixed, but it's a mess (no, not the NDN code).

Also don't forget "sudo ndn ...".

Keys and mouse ONLY work here because I access the X-Window system, if I can...

 

C) Terminal emulators like Putty or without X-Window or without sudo

Here NDN only can access what the Linux kernel sends over the standard

communication pipes.

Simple example:

If your Linux system/distribution sends A where it should send B.

NDN will get an A, even if you want it to get a B.

 

In other words:

NDN (and ANY other standard Linux program) does not read the keyboard directly

but a stream of data which has to be interpreted / decoded.

If it doesn't get what it expects for left arrow, it cannot act accordingly.

 

I tryed NDN on Ubuntu (9.04) directly and reveal strange thing:

 

Arrows don't work at all!

What of the above "terminal types" are you using?

Are all 4 arrows not working?

What about PgUp/PgDn?

 

If you give me more information I can help you maybe.

 

Stefan / AH

Share this post


Link to post
Share on other sites
Basil/2    0
Hi Basil & Dan (thanks for helping out),

Sorry I didn't answer so long - had 2 large personal troubles...

 

A) Real LINUX terminals

NDN only really works like DOS/WINDOWS in a real LINUX terminal, and only when starting it with "sudo ndn ...".

With "real" terminal I mean the text window you see after pressing ALT+CTRL+1-6.

Yes, NDN works in this terminal, even without sudo. However I didn't used pure full-screen textmode for more than 10 years :)

 

B) X-Window terminals

I have quite some problems with these terminals (emulators to be exact).

Please see the bottom of the NDN online help "Supported Operating Systems" for

a detailed list. I will soon try again to get all this fixed, but it's a mess (no, not the NDN code).

Keys and mouse ONLY work here because I access the X-Window system, if I can...

In this case, when I run application called "Terminal", arrows don't work, even with sudo. However MC (MidnightCommander) understands arrows well, so their keypress events are passed to application somehow.

 

What of the above "terminal types" are you using?

Are all 4 arrows not working?

What about PgUp/PgDn?

I use build-in Ubuntu's application "Terminal", which is X-terminal in my opinion. About says that is "Terminal emulator for GNOME 2.26.0".

All 4 don't work, as well as PgUp/PgDn and Home/End.

 

C) Terminal emulators like Putty or without X-Window or without sudo

Here NDN only can access what the Linux kernel sends over the standard

communication pipes.

I tried to access NDN on Ubuntu from another PC using PuTTY - and all keys works perfectly! So the problem is that

NDN can't read movement keys from build-in Ubuntu terminal.

 

(Does NDN work with UTF-8 now? - I have some troubles with russian chars on Ubuntu)

Share this post


Link to post
Share on other sites

Hi!

 

I tried to access NDN on Ubuntu from another PC using PuTTY - and all keys works perfectly! So the problem is that

NDN can't read movement keys from build-in Ubuntu terminal.

Ok, try this:

 

start xev from the command line. A new window should open and show all events on that window.

Please, try all the keys that don't work on that window and post their KeyCode values.

Probably these values are different from the oney NDN expects.

 

(Does NDN work with UTF-8 now? - I have some troubles with russian chars on Ubuntu)

No, still no Unicode/UTF support.

I don't even know if it will be possible at all.

 

Bye,

Stefan / AH

Share this post


Link to post
Share on other sites
Basil/2    0

Well, I did :)

 

There is a log of following keypress sequence:

4 arrows,

Home,

End,

Ctrl-PgUp,

Ctrl-PgDn

 

KeyPress event, serial 30, synthetic NO, window 0x4000001,

root 0x11c, subw 0x0, time 1324733, (517,597), root:(522,670),

state 0x10, keycode 113 (keysym 0xff51, Left), same_screen YES,

XLookupString gives 0 bytes:

XmbLookupString gives 0 bytes:

XFilterEvent returns: False

 

KeyRelease event, serial 33, synthetic NO, window 0x4000001,

root 0x11c, subw 0x0, time 1324878, (517,597), root:(522,670),

state 0x10, keycode 113 (keysym 0xff51, Left), same_screen YES,

XLookupString gives 0 bytes:

XFilterEvent returns: False

 

KeyPress event, serial 33, synthetic NO, window 0x4000001,

root 0x11c, subw 0x0, time 1325306, (517,597), root:(522,670),

state 0x10, keycode 114 (keysym 0xff53, Right), same_screen YES,

XLookupString gives 0 bytes:

XmbLookupString gives 0 bytes:

XFilterEvent returns: False

 

KeyRelease event, serial 33, synthetic NO, window 0x4000001,

root 0x11c, subw 0x0, time 1325418, (517,597), root:(522,670),

state 0x10, keycode 114 (keysym 0xff53, Right), same_screen YES,

XLookupString gives 0 bytes:

XFilterEvent returns: False

 

KeyPress event, serial 33, synthetic NO, window 0x4000001,

root 0x11c, subw 0x0, time 1325925, (517,597), root:(522,670),

state 0x10, keycode 111 (keysym 0xff52, Up), same_screen YES,

XLookupString gives 0 bytes:

XmbLookupString gives 0 bytes:

XFilterEvent returns: False

 

KeyRelease event, serial 33, synthetic NO, window 0x4000001,

root 0x11c, subw 0x0, time 1326029, (517,597), root:(522,670),

state 0x10, keycode 111 (keysym 0xff52, Up), same_screen YES,

XLookupString gives 0 bytes:

XFilterEvent returns: False

 

KeyPress event, serial 33, synthetic NO, window 0x4000001,

root 0x11c, subw 0x0, time 1326612, (517,597), root:(522,670),

state 0x10, keycode 116 (keysym 0xff54, Down), same_screen YES,

XLookupString gives 0 bytes:

XmbLookupString gives 0 bytes:

XFilterEvent returns: False

 

KeyRelease event, serial 33, synthetic NO, window 0x4000001,

root 0x11c, subw 0x0, time 1326716, (517,597), root:(522,670),

state 0x10, keycode 116 (keysym 0xff54, Down), same_screen YES,

XLookupString gives 0 bytes:

XFilterEvent returns: False

 

KeyPress event, serial 33, synthetic NO, window 0x4000001,

root 0x11c, subw 0x0, time 1333960, (517,597), root:(522,670),

state 0x10, keycode 110 (keysym 0xff50, Home), same_screen YES,

XLookupString gives 0 bytes:

XmbLookupString gives 0 bytes:

XFilterEvent returns: False

 

KeyRelease event, serial 33, synthetic NO, window 0x4000001,

root 0x11c, subw 0x0, time 1334049, (517,597), root:(522,670),

state 0x10, keycode 110 (keysym 0xff50, Home), same_screen YES,

XLookupString gives 0 bytes:

XFilterEvent returns: False

 

KeyPress event, serial 33, synthetic NO, window 0x4000001,

root 0x11c, subw 0x0, time 1334841, (517,597), root:(522,670),

state 0x10, keycode 115 (keysym 0xff57, End), same_screen YES,

XLookupString gives 0 bytes:

XmbLookupString gives 0 bytes:

XFilterEvent returns: False

 

KeyRelease event, serial 33, synthetic NO, window 0x4000001,

root 0x11c, subw 0x0, time 1334930, (517,597), root:(522,670),

state 0x10, keycode 115 (keysym 0xff57, End), same_screen YES,

XLookupString gives 0 bytes:

XFilterEvent returns: False

 

KeyPress event, serial 33, synthetic NO, window 0x4000001,

root 0x11c, subw 0x0, time 1338269, (517,597), root:(522,670),

state 0x10, keycode 105 (keysym 0xffe4, Control_R), same_screen YES,

XLookupString gives 0 bytes:

XmbLookupString gives 0 bytes:

XFilterEvent returns: False

 

KeyPress event, serial 33, synthetic NO, window 0x4000001,

root 0x11c, subw 0x0, time 1338764, (517,597), root:(522,670),

state 0x14, keycode 112 (keysym 0xff55, Prior), same_screen YES,

XLookupString gives 0 bytes:

XmbLookupString gives 0 bytes:

XFilterEvent returns: False

 

KeyRelease event, serial 33, synthetic NO, window 0x4000001,

root 0x11c, subw 0x0, time 1338853, (517,597), root:(522,670),

state 0x14, keycode 112 (keysym 0xff55, Prior), same_screen YES,

XLookupString gives 0 bytes:

XFilterEvent returns: False

 

KeyPress event, serial 33, synthetic NO, window 0x4000001,

root 0x11c, subw 0x0, time 1339471, (517,597), root:(522,670),

state 0x14, keycode 117 (keysym 0xff56, Next), same_screen YES,

XLookupString gives 0 bytes:

XmbLookupString gives 0 bytes:

XFilterEvent returns: False

 

KeyRelease event, serial 33, synthetic NO, window 0x4000001,

root 0x11c, subw 0x0, time 1339551, (517,597), root:(522,670),

state 0x14, keycode 117 (keysym 0xff56, Next), same_screen YES,

XLookupString gives 0 bytes:

XFilterEvent returns: False

 

KeyRelease event, serial 33, synthetic NO, window 0x4000001,

root 0x11c, subw 0x0, time 1339954, (517,597), root:(522,670),

state 0x14, keycode 105 (keysym 0xffe4, Control_R), same_screen YES,

XLookupString gives 0 bytes:

XFilterEvent returns: False

 

However, I lost the job with Linux, so I don't need NDN for it now.

It would be much better if Windows version will start reading 16bit unicode files into internal editor, instead :) :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×