Operating System - HP-UX
1833892 Members
2078 Online
110063 Solutions
New Discussion

Re: Arrow keys generate "%2;24r" string

 
Matt Hearn
Regular Advisor

Arrow keys generate "%2;24r" string

I'm still trying to get my Pine implementation to run properly. It loads, and I managed to get the IMAP configuration set up properly so I can now read mail in the ASCII text format in which it was always intended to be seen. :)

However, when I'm viewing a message, if I press an arrow key to scroll up or down, "%2;24r" appears on my screen and totally throws off the ncurses appearance. It doesn't do that in the folder index mode, nor does it do it on messages that are small enough to fit in the whole screen. It only seems to occur when I can actually scroll through long messages (in fact, along with the funny code it sends me, it does actually show the next line of message text, but the screen is so thrown off that ncurses displays it in the wrong place).

I'm using PuTTY to connect to a D310 running 11i. I do have to reset my terminal when I log in since PuTTY ssh connections default to "xterm," which Pine doesn't understand.

Also, I'm logging in through a rather laborious process that involves going through a number of administration servers to get to the Pine test box, all via ssh.

I am able to connect to the Pine test box directly from my laptop if I go plug into that network; I did that last night and I don't remember getting the weird %2;24r message, but it may simply have been that I wasn't viewing large, scrollable messages.

It seems like a weird terminal error, but it's a difficult string for which to search because of the special characters. Has anyone seen this before? I've tried changing every PuTTY terminal value, I've tried setting other TERM values when I log in, and I looked at the Pine configuration screen but couldn't find anything related to why my arrow keys act funky.

Thanks!!!!
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: Arrow keys generate "%2;24r" string

stty -a

Please post.

to deal with ptty funkiness you are going to have to do some custom stty statements. This is resolvable though I've never bothered to figure out the codes.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Matt Hearn
Regular Advisor

Re: Arrow keys generate "%2;24r" string

/home/hearnmd> stty -a
speed 300 baud; line = 0;
rows = 24; columns = 80
min = 1; time = 1;
intr = ^C; quit ; erase = ^H; kill = ^U
eof = ^D; eol = ^@; eol2 ; swtch
stop ; start = ^Q; susp ; dsusp
werase ; lnext
-parenb -parodd cs8 -cstopb hupcl cread -clocal -loblk -crts
-ignbrk brkint -ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc
ixon ixany ixoff -imaxbel -rtsxoff -ctsxon -ienqak
isig icanon -iexten -xcase echo echoe echok -echonl -noflsh
-echoctl -echoprt -echoke -flusho -pendin
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel -tostop
/home/hearnmd>